# this code is to list the events that are scheduled def listeventdates # exception begin begin fileList = Dir.new($rwdschedule_directory).entries.sort.delete_if { |x| ! (x =~ /sch$/) } @eventrecordsresult = fileList.rwd_method("filleventdatesname") rescue @eventrecordsresult = "error opening schedule directory" end # end of error function end def filleventdatesname(inffile) applet = inffile.gsub(/\.sch$/, "") @a_viewevent = applet end