Sha256: 045abf5957a1c535702944b2ebad0117bf1251b185ac39d38a9db933a25bd126

Contents?: true

Size: 540 Bytes

Versions: 11

Compression:

Stored size: 540 Bytes

Contents

   # this method deletes a file
  def deleteicseventrecord
 
    require 'fileutils'
  
      if @a_viewicsevent
      $currenticseventtext =  @a_viewicsevent
      end
              
              
    begin # exception trapped block
      fileName = $rwdschedule_directory + "/" + $currenticseventtext + ".ics"
      File.delete(fileName)
      @eventicsfilechangeresult = "#{$currenticseventtext} File Deleted!"
     rescue 
         @eventicsfilechangeresult = "File Deletion error"
    end # exception rescue

  end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
bigtinker-0.98 code/superant.com.schedule/deleteicseventrecord.rb
bigtinker-0.95 code/superant.com.schedule/deleteicseventrecord.rb
rwdschedule-0.07 code/superant.com.schedule/deleteicseventrecord.rb
rwdschedule-0.95 code/superant.com.schedule/deleteicseventrecord.rb
rwdschedule-0.98 code/superant.com.schedule/deleteicseventrecord.rb
rwdschedule-1.02 code/superant.com.schedule/deleteicseventrecord.rb
rwdschedule-0.97 code/superant.com.schedule/deleteicseventrecord.rb
rwdschedule-0.99 code/superant.com.schedule/deleteicseventrecord.rb
rwdschedule-0.96 code/superant.com.schedule/deleteicseventrecord.rb
rwdschedule-1.00 code/superant.com.schedule/deleteicseventrecord.rb
rwdschedule-1.01 code/superant.com.schedule/deleteicseventrecord.rb