RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TSession.AddStandardAlias Method

Adds a standard Borland Database Engine (BDE) alias to the session for Paradox, dBASE, or ASCII tables.

Pascal
procedure AddStandardAlias(const Name: string; const Path: string; const DefaultDriver: string);
C++
__fastcall AddStandardAlias(const AnsiString Name, const AnsiString Path, const AnsiString DefaultDriver);

Call AddStandardAlias at runtime to create a session-specific BDE alias for Paradox, dBASE or ASCII tables. Name is the unique name to assign to the alias. Path specifies the directory where the database is located. DefaultDriver is the name of the standard BDE driver to use for the alias. If set, DefaultDriver must be one of "Paradox," "DBASE," or "ASCIIDRV". If left blank DefaultDriver defaults to "Paradox". DefaultDriver is used when attempting to open a table that both does not have an extension and is defined as a table of type ttDefault. 

A session's ConfigMode property determines whether an alias is local to the session, or is available to all applications in the BDE persistent store as long as any BDE clients are active. the lifetime of the session. To save an alias permanently, call the SaveConfigFile method before ending the session.

Note: To create an alias for an SQL database, call AddAlias instead of AddStandardAlias.
 

 

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