
OK, dann z.B. so:
Code: Alles auswählen
EnableExplicit
#Separator$ = " "
Procedure.s ProperCase(text$)
Protected i, count = CountString(text$, #Separator$) + 1
Protected word$, result$ = ""
For i = 1 To count
word$ = StringField(text$, i, #Separator$)
result$ + UCase(Left(word$, 1)) + Mid(word$, 2)
If i < count
result$ + #Separator$
EndIf
Next
ProcedureReturn result$
EndProcedure
Debug "'" + ProperCase("äpfel birnen kirschen") + "'"
Debug "'" + ProperCase(" äpfel birnen kirschen ") + "'"