# this method views an existing address record def deleteeventrecord require 'fileutils' if @a_viewevent $currenteventtext = @a_viewevent end begin # exception trapped block fileName = $rwdschedule_directory + "/" + $currenteventtext + ".sch" File.delete(fileName) @eventfilechangeresult = "File Deleted!" rescue @eventfilechangeresult = "File Deletion error" end # exception rescue end