Sha256: cf6521021a8ea35ccbf3448d05944f0781110b2d6aa621ffc476a167ee4cd3a1
Contents?: true
Size: 1.24 KB
Versions: 3
Compression:
Stored size: 1.24 KB
Contents
# 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
Version data entries
3 entries across 3 versions & 2 rubygems