Something like charIndex, but in a variable...

J. Landman Gay jacque at hyperactivesw.com
Thu Apr 30 10:48:19 EDT 2015


Will the offset function work? 

put the number of chars in line 1 to 14 of tVar into tCount
put offset(startChar, line 15 of tVar)  + tCount into tStart
put offset(endChar, line 15 of tVar)  + tCount into tEnd


On April 30, 2015 3:07:05 AM CDT, Malte Brill <revolution at derbrill.de> wrote:
>Hi all,
>
>I need to find the start and end character of chuncks in a variable. If
>we are in a field we can use charIndex for that. However, in a variable
>I have no good idea on how to do something similar to
>
>get charIndex(token 7 of line 15 of field „myField“)
>
>
>Any ideas?
>
>All the best,
>
>Malte
>
>
>_______________________________________________
>use-livecode mailing list
>use-livecode at lists.runrev.com
>Please visit this url to subscribe, unsubscribe and manage your
>subscription preferences:
>http://lists.runrev.com/mailman/listinfo/use-livecode

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the use-livecode mailing list