[AccessD] Number of a specific characters in a string

John Skolits askolits at ot.com
Mon Jul 24 14:57:46 CDT 2006


I'm sure I could write some code for this, but is there a function that
returns the occurrences of a specific character within a string.

 

Ie:

If the string is

strSTRING = " Hello how are you, today"

 

And I put it in a function called NumOfSpecifcChar() where the firsts
argument is the string and the second the string value to search for.

 

integerValue = NumOfSpecifcChar (strSTRING, "o")

 

It would return a '4'

 

 




More information about the AccessD mailing list