I have a string of alpha-numeric codes separated by commas and need to count how many commas are in the string to determine how many codes are listed (one more than the number of commas).
I know instr() will return the first instance of a character, but how can I count how many of them?
For example, given this string;
EI1184,OL9443,GG4657,DF7745
I need code that would count the commas and return the number 3 (I would then add 1 to get the number of codes listed = 4).
I know instr() will return the first instance of a character, but how can I count how many of them?
For example, given this string;
EI1184,OL9443,GG4657,DF7745
I need code that would count the commas and return the number 3 (I would then add 1 to get the number of codes listed = 4).