the char number of char 1 of word x

Jim Ault JimAultWins at yahoo.com
Sat Dec 29 16:16:37 EST 2007


On 12/29/07 12:51 PM, "Randall Lee Reetz" <randall at randallreetz.com> wrote:

> How do I get the char count (number) of the first char of a
> particular word (say "word 4") of a string?

get the number of chars in word 1 to 4 of textString
subtract length(word 4 of textString) from it

-- now (it) will include any white space before the 4th word, eg multiple
spaces, commas, and any other non-word chars





More information about the Use-livecode mailing list