What makes a line a line in a chunk expression?
J. Landman Gay
jacque at hyperactivesw.com
Sun Sep 6 21:07:37 EDT 2009
Len Morgan wrote:
> If I type the lines:
> put "Movement History" into myChoice
> put the text of button "taskBar" into tLines
> put (myChoice is among the lines of tLines)
> into the message box, the result I get is "false"
When you use "is among", the entire line must match to get a hit. If the
line you are trying to match has any extra characters (maybe "Movement
History for Dummies") then the result is false. The two strings must be
If you are trying to match only the beginnings of lines, try something
if offset(cr & myChoice, cr & tLines) > 0 then...
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
More information about the Use-livecode