> 
> Wie jetzt OverKill?
> 
> Beate Schmidt hat doch mit Ihrem Beitrag die beste Idee von 
> allen gehabt.
> 
> Dim mc As MatchCollection = Regex.Matches("Pfeiffer", "f")
> dim anzahlf as Short = mc.Count
> 
> Damit hat man es doch innerhalb von 2 Zeile abgehandelt.
> 
> Wenn ich dran denke das Du das ganze als rekursiven Aufruf 
> machen w�rdest - sind doch die 3 gebrachten L�sungen 
> wesentlich besser.
> 

Nicht rekursiv - in einer Schleife. Ungef�hr so (Pseudocode):

function countChars(string)
  countChars = 0
  i = IndexOf(string, 0)

  while (i >= 0)
    countChars = countChars + 1
    i = IndexOf(string, i + )
  wend
end function

| [aspdedotnet] als [email protected] subscribed
| http://www.dotnetgerman.com/archiv/aspdedotnet/ = Listenarchiv
| Sie k�nnen sich unter folgender URL an- und abmelden:
| http://www.dotnetgerman.com/listen/aspDEdotnet.asp

Antwort per Email an