the char number of char 1 of word x

Derek Bump runrev at dreamscapesoftware.com
Sat Dec 29 16:05:14 EST 2007


Randall,

I'm assuming that you mean the length of a particular word within a
string or variable...

   put length(word 4 of someVariable) into wordLength

        -- or --

   put length(word 4 of line 3 of fld "myField") into wordLength


Otherwise do you mean the number of chars that occur until the first
letter of a string?  Then that would be...

   put length(word 1 to 3 of "a sample string") - length(word 3 of "a
sample string") into charCount


Derek Bump
Dreamscape Software
http://www.dreamscapesoftware.com

___________________________________________________________________
Compress your photos quickly and easily with JPEGCompress 2.9!
http://www.dreamscapesoftware.com/products/jpegcompress/


Randall Lee Reetz wrote:
> How do I get the char count (number) of the first char of a particular
> word (say "word 4") of a string?
> 
> Randall
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 



More information about the Use-livecode mailing list