[Gambas-user] Counting characters
    Rolf-Werner Eilert 
    eilert-sprachen at ...221...
       
    Fri Nov 11 10:09:55 CET 2011
    
    
  
Hi all,
just a short question: Is there a function which simply counts how many 
times a character appears within a string? I vaguely remember a long 
time ago I used such a thing, but it may as well have been in another 
context.
The only way I have found yet was using Split() and then count the 
number of resulting parts -1 IF it is more than 0.
Any better way?
Rolf
    
    
More information about the User
mailing list