Something like charIndex, but in a variable...
Walt Brown
walter.h.brown at gmail.com
Thu Apr 30 07:51:08 EDT 2015
Best I could do is:
*on* mouseUp
*local* tVar, tStart, tEnd
*put* fld "fData" into tVar
*get* matchChunk(tVar, "(" & word 8 of tVar & ")", tStart, tEnd)
*answer* tStart & comma && tEnd
*end* mouseUp
On Thu, Apr 30, 2015 at 4:07 AM, 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
More information about the use-livecode
mailing list