the char number of char 1 of word x

Jim Ault JimAultWins at yahoo.com
Sat Dec 29 19:31:18 EST 2007


Well, like I said before
-----------------------
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

If you want to include the first char of word 4 in the count
add 1 to it
----- thus use these 3 lines, or a compact version -----------
get the number of chars in word 1 to 4 of textString
subtract length(word 4 of textString) from it
add 1 to it


Jim Ault
Las Vegas



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

> I need the syntax to get the exact number of chars up until the first char of
> another chunk expression (word thscount of thsstring).
> 





More information about the use-livecode mailing list