> how to read the secon line.
Either use FileIO's "setPosition()" method so that it will read the correct
line, or (easier) read the entire file, figure out which line in the first
field the user clicked, and grab that line from the string you read in with
FileIO.
on mouseUp
set lineNum = the mouseLine
set texte = new(xtra "FileIo")
set chemin = "@//helpdesk/textes/description.txt"
openFile (texte,chemin,1)
tString = readFile(texte)
put line lineNum of tString into field "contenu"
set texte = 0
end
You might do some error checking to make sure that lineNum is a valid line,
and that tString has a line at lineNum, but otherwise this should work.
HTH,
-Sean.
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]