Sha256: 5ec6e018e4e4b8405a6847afadc0285f3fefdbe29fa98b326505487b350608d7

Contents?: true

Size: 1.08 KB

Versions: 10

Compression:

Stored size: 1.08 KB

Contents

  # this method adds a new  record
  def saveeventrecord 
   require 'fileutils'
   if @a_eventfilename
   newname = "%s" %   [@a_eventfilename] # grab the new filename to create
   newdata = @a_eventyear.to_s + @a_eventmonth.to_s + @a_eventday.to_s  + "T" + @a_eventbeginhour.to_s  + @a_eventbeginminute.to_s + "00"
   newdata = newdata + "\n" + @a_eventyear.to_s + @a_eventmonth.to_s + @a_eventday.to_s  + "T" + @a_eventendhour.to_s  + @a_eventendminute.to_s  + "00"
   newdata = newdata +"\n" + @a_eventsummary.to_s  + "\n" + @a_eventdescription.to_s  + "\n" + @a_eventlocation.to_s 
  
     
      
    
 	
  fullnewname = newname + ".sch"
        begin # exception trapped block
          fileName = File.join( $rwdschedule_directory, fullnewname )
        	fd = File.open(fileName,"w")
	        fd.print(newdata) # save the record info to the file
	        fd.close
          @neweventresult=newdata # show the record info in the browser
        rescue SystemCallError, StandardError
            $stderr.print "system call error: " + $!
        end # exception rescue
    end
  end

Version data entries

10 entries across 10 versions & 2 rubygems

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