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

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.
    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