Output String is ‘New York Abc Cad Bdf Red’. Message('OutputString is %1.', OutputString) OutputString := OutputString + ' ' + UPPERCASE(COPYSTR(StringList.Get(i), 1, 1)) + LOWERCASE(COPYSTR(StringList.Get(i), 2)) Message('InputString is %1.', InputString) įor i := 1 to StringList.Count() do begin InputString := 'NEW YORK ABC CAD BDF RED BLUE' List Data Type pageextension 50100 CustomerListExt extends "Customer List" So what we have to do is to split the string according to the Separator, then do the same processing, and finally combine them. Someone else may have run into this problem, so in this post, I will share how to do it, hope this will help.įirst, you can use the following method to change the first letter of the sentence to uppercase. I immediately tested it and found it possible. Is there a way to format a string with “proper case? (Only initial caps), for example: NEW YORK -> New York, Los Angeles -> Los Angeles.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |