04-07-2023, 02:18 PM
>>A TStringList will make it easier to retrieve the values.
>>At the contrary of a UnicodeString for which I will need
>>to write a code to separate the values from the commas.
TStringList contains the property DelimitedText. Assign DelimitedText a string of comma (or any other delimiter) separated values to populate the TStringList, no need to write code to separate the values:
>>At the contrary of a UnicodeString for which I will need
>>to write a code to separate the values from the commas.
TStringList contains the property DelimitedText. Assign DelimitedText a string of comma (or any other delimiter) separated values to populate the TStringList, no need to write code to separate the values:
Code:
auto_ptr<TStringList> s(new TStringList);
s->DelimitedText = "1,2,3";
