RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TSession.SaveConfigFile Method

Writes the current information in the Borland Database Engine (BDE) persistent store from memory to the BDE configuration file on disk.

Pascal
procedure SaveConfigFile;
C++
__fastcall SaveConfigFile();

Call SaveConfigFile to write any BDE configuration changes currently in memory to the BDE configuration file on disk. When the BDE is first initialized, the current BDE configuration file is read into persistent storage in memory. Applications can read or modify the configuration file in memory, but modification exist only in memory, not on disk. 

For example, if an application defines a new BDE alias with AddAlias, the alias exists in memory only for as long as the BDE resides in memory. To store the new alias for later use by all applications that use the BDE, call SaveConfigFile. SaveConfigFile overwrites the disk image of the configuration file with the in-memory image of the persistent configuration file.

Note: If a session's ConfigMode property is cmSession, added aliases cannot be saved to the BDE configuration file.
 

 

ConfigMode 

AddAlias 

Working with BDE Aliases

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!