On 11/16/04 4:58 PM, D.Rothe wrote:

Hi,
I have a tab delimited list I want to be able to search, say I have a list of 
names for example;

Father Xmas    Is Drunk
New Years    Is after Xmas
Rudolph    The Reindeer
Merry Xmas    To all

I want to search for ALL instances of Xmas and display the whole matching line of each found in a list field.
So far I can get it to display the first line only ( Father Xmas Is Drunk) ! Any help would appreciated!!! I have checked the tutorials for help but couldn't find what I was looking for,
is there an example stack or notes anyone may know of?

Here's one way:

on mouseUp
  answer getLines("Xmas",fld 1)
end mouseUp

function getLines tString,tData
  put 0 into tOffset
  repeat
    get lineoffset(tString,tData,tOffset)
    if it = 0 then exit repeat
    put line it+tOffset of tData & cr after tNewList
    add it to tOffset
  end repeat
  return tNewList
end getLines

--
Jacqueline Landman Gay         |     [EMAIL PROTECTED]
HyperActive Software           |     http://www.hyperactivesw.com
_______________________________________________
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to