Guest_imported
New member
- Jan 1, 1970
- 0
I need to find the number of "*" that there are on a string, what would be the best way to do it? The String object doesn't seem to have methods for this, how would you do it?
EX:
String test = "aaa* bbb* ccc"
int counter = Count("*",test);
counter should return 3.
Also is there a straight ahead way to convert a float like 1,22 to 1.22 if the default decimal separator of the system is "." and vice-versa?
Regards
EX:
String test = "aaa* bbb* ccc"
int counter = Count("*",test);
counter should return 3.
Also is there a straight ahead way to convert a float like 1,22 to 1.22 if the default decimal separator of the system is "." and vice-versa?
Regards