
else
append getprop(index,thisword),w
end if
end repeat
sort index
end if
return index
end
GetListOfLines(sourceString) - where sourceString is the string to operate on. Returns a list of
lines delimited by either CR only (Mac) or CR/LF (PC) or empty list if there was an error.
Creates a list of the lines contained in sourceString.
Example:
on readPCFile filePath
-- Automatically strips off linefeeds and puts lines into
-- a list
--
set f = new(xtra "fileio")
openFile(f,filePath,1)
set filetext = readFile(f)
closeFile(f)
set lineList = GetListOfLines(filetext)
return lineList
end
Online Help
38
Comentarios a estos manuales