Counting Chars by ASCI Values
Todd Geist
tg.lists at geistinteractive.com
Tue Feb 28 16:49:50 EST 2006
Thanks!
Todd
On Feb 28, 2006, at 1:41 PM, Jonathan Lynch wrote:
> You know, you can use the numtochar and chartonum functions to go
> between
> ascii/ansi numbers and the equivalent character.
>
> like this
>
> function NumCharsInString pAsciiChar pString
> put numtochar(pString) into tChar
> put 0 into tCount
> repeat for each char tCharToCheck in pString
> if tChar = tCharToCheck then add 1 to tCount
> end repeat
> return tCount
> end NumCharsInString
--
Todd Geist
______________________________________
g e i s t i n t e r a c t i v e
More information about the use-livecode
mailing list