RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TSession.ModifyAlias Method

Adds or changes parameters for a Borland Database Engine (BDE) alias.

Pascal
procedure ModifyAlias(Name: string; List: TStrings);
C++
__fastcall ModifyAlias(AnsiString Name, TStrings List);

Call ModifyAlias to change the parameters for a specified BDE alias. Name is the name of the alias to modify. List is a string list object previously populated with parameter values to add or change. An application must create and maintain List. 

Populate List with parameter strings before calling ModifyAlias. List need only contain the parameters to change. If ModifyAlias passes a parameter for which a value already exists, the new parameter replaces the existing one. New parameters that are not yet defined for the alias are added to the existing parameters. If List is empty, ModifyAlias does not change any existing parameters. 

ModifyAlias changes the alias parameters for the session, but does not change them in the BDE configuration file. To modify a driver in the BDE configuration file, follow the call to ModifyAlias with a call to SaveConfigFile

 

ConfigMode 

GetAliasParams 

Params 

SaveConfigFile 

Working with BDE Aliases

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