Sha256: fb189c5e6f3378fb4e2e327277311e6b3efec03c85ba2bb4a08cc1a09089b80a

Contents?: true

Size: 906 Bytes

Versions: 6

Compression:

Stored size: 906 Bytes

Contents

  # this method adds a new address record
  def saveeventrecord 
   require 'fileutils'
   if @a_eventfilename
   newname = "%s" %   [@a_eventfilename] # grab the new filename to create
   newdata =@a_eventtime.to_s + "\n" + @a_eventwhat.to_s + "\n" + @a_eventaddress.to_s + "\n" + @a_eventphone.to_s + "\n" + @a_eventemail.to_s + "\n" + @a_eventcomment1.to_s + "\n" + @a_eventcomment2.to_s + "\n" + @a_eventcomment3.to_s + "\n"
	 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

6 entries across 6 versions & 1 rubygems

Version Path
rwdschedule-0.9 code/gg0schedules/saveeventrecord.rb
rwdschedule-0.6 code/gg0schedules/gg9saveeventchanges.rb
rwdschedule-0.5 code/gg0schedules/gg9saveeventchanges.rb
rwdschedule-0.8 code/gg0schedules/gg9saveeventchanges.rb
rwdschedule-0.91 code/superantc.com.schedule/saveeventrecord.rb
rwdschedule-0.92 code/superant.com.schedule/saveeventrecord.rb