RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TMemIniFile.SetStrings Method

Populates the memory buffer with contents of a string list.

Pascal
procedure SetStrings(List: TStrings);
C++
__fastcall SetStrings(TStrings List);

Call SetStrings to populate the in-memory copy of the INI file data with the contents of a string list. 

List is a string list object, created and maintained by the application, from which the INI file data is copied. 

SetStrings uses the Clear method to erase any existing INI file data prior to copying the new data. 

SetStrings can be used to reread data from the INI file from disk after it is erased with the Clear method. The LoadFromFile method of a string list can be used to retrieve the contents of the INI file and then SetStrings can copy the data into the memory buffer. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!