System.IniFiles.TMemIniFile.SetStrings

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure SetStrings(const List: TStrings);

C++

void __fastcall SetStrings(System::Classes::TStrings* const List);

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.IniFiles.pas
System.IniFiles.hpp
System.IniFiles TMemIniFile

Description

Populates the memory buffer with contents of a string 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.

See Also