Counting Chars by ASCI Values
Jim Lambert
jiml at netrin.com
Tue Feb 28 23:01:20 EST 2006
If you go the route of counting through each character vs. the clever
itemcount technique, and if there are a number of lines in the string you
want to parse, then you might save some time by filtering the lines for your
target character.
If you're looking to count a's then
filter myString with "*a*"
In this way, you'd almost instantly eliminate all lines that don't contain
"a".
This leaves you with a shorter string to iterate through.
Personally I prefer the itemcount technique.
Jim Lambert
More information about the use-livecode
mailing list