RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TMemIniFile.Rename Method

Associates the TMemIniFile with a different INI file.

Pascal
procedure Rename(const FileName: string; Reload: Boolean);
C++
__fastcall Rename(const AnsiString FileName, Boolean Reload);

Call Rename to change the INI file used by the TMemIniFile object to a file other than the one specified when the object was created. 

FileName is name of the new INI file to use. 

Reload determines whether data is immediately loaded into memory from the INI file specified in FileName. When Reload is true, the TMemIniFile object is repopulated with the data from the specified file. When Reload is false, the in-memory image is unchanged. This is useful, for example, when copying the data from one INI file to another file. 

 

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