Counting Chars by ASCI Values

Stephen Barncard stephenREVOLUTION at barncard.com
Tue Feb 28 23:38:09 EST 2006


There really is a NULL constant!! cool!
sqb

>On 2/28/06 3:57 PM, "Jonathan Lynch" <jonathandlynch at gmail.com> wrote:
>
>>  I like the idea of using itemdel as a means of counting - very clever...
>>
>>  I was thinking there must be some other immediate means of counting?
>
>How about this one?
>
>function CountChars pString,pChar
>   replace space with null in pString
>   replace pChar with space in pString
>   return ((the number of words of pString)-1)
>end CountChars
>
>Ken Ray

-- 
stephen barncard
s a n  f r a n c i s c o
- - -  - - - - - - - - -



More information about the use-livecode mailing list