Counting Chars by ASCI Values
Ken Ray
kray at sonsothunder.com
Tue Feb 28 23:29:12 EST 2006
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
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: kray at sonsothunder.com
More information about the use-livecode
mailing list