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