aha!

Using replace twice - awesome Idea!

I would write it like this:

function CharCount pAsciiChar,pString
  put numtochar(pAsciiChar) into tCharToCheck
  put pString into pString2
  replace tCharToCheck with empty in pString2
  return (the length of pString)-(the length of pString2)
end CharCount

Awesome thinking Cubist!
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to