Determining number of occurrences

Jean Marc Azerad azerad.jm at wanadoo.fr
Fri Dec 19 13:34:14 EST 2014


Calculate OccNb as len(Mystring)-len(replaceall(Mystring,'.','')

Not tried but should work...



> Le 19 déc. 2014 à 18:59, Andrew Stolarz <stolarz at gmail.com> a écrit :
> 
> Hello,
> 
> What is the best way to determine the number of occurrences within a string?
> 
> ie. count number of times a period '.' is in a string.
> 
> 
> 
> Andrew
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com




More information about the omnisdev-en mailing list