lineoffset
Jim Ault
jimaultwins at yahoo.com
Fri Nov 6 18:10:46 EST 2009
I suppose I should be a little more clear on why this works with
lineOffset
lineOffset finds the first match in a text block.
If the string to find includes one or more cr's then it is a multiline
match with the return value being the first line value.
Eg. using these 4 lines ----------
rainbow| clouds rain sunshine
photo| rain rainbow lightning
image| party balloon cake
balloon| red float photo smile noise
lineOffset of ("cake
balloon| red float photo smile noise")
is 3
lineOffset of ("rainbow lightning
image| party balloon cake
balloon| red")
is 2
Jim Ault
Las Vegas
More information about the use-livecode
mailing list