# this method views next record def loadprevfoldnote if @a_viewfoldlink > "" if @a_viewfoldlinkfile if !@a_viewfoldlinkfile.empty? # a fold link file has been selected fileName = File.join($rwdfoldeditor_directory, @a_viewfoldlinkfile.to_s.strip) tmpfilearray = [] begin File.open(fileName).each { |line| if ! line.strip.empty? tmpfilearray << line.strip end } rescue if $DEBUG $stderr.puts "file error in dispfoldlinks" end end end end tmpindex = tmpfilearray.index(@a_viewfoldlink.to_s.strip) $stderr.puts tmpindex.to_s if tmpindex - 1 > -1 @a_viewfoldlink = tmpfilearray[tmpindex - 1].to_s.strip loadfolddocument # load the file end end end