View Single Post
 
Old 03-13-2017, 11:07 AM
Norrit Norrit is offline
Moderator
 
Join Date: Aug 2001
Location: Landgraaf
Posts: 7,174
Default

Copy is the bad solution, especially when you only copy 255 characters. Then you should copy using the Length(s). But it's easies to just uppercase the first character.
Code:
    s := LowerCase(s);
    s[1] := UpCase(s[1]);
    Result := s;
A string is nothing more then an array of Char, therefor I prefer this construction.
Reply With Quote