>While "offset" gives me the starting position of a chunk in a string, how do
>I get the number of the line/word/item that contains my search string,
>something like
>
>put offsetLine(lookForString, inString)
>  -- line  25


In olde syntax, you would say:

whichline = the number of lines in char 1 to offset(lookForString, 
inString) of lookForString

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/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!]

Reply via email to