This client-side function receives a database as a parameter and disconnects the current connection of that database. The ClientDbDiscnt function is relevant only for local databases.
|
Syntax:
|
ClientDbDiscnt(database name)
|
Parameters:
|
database name – An Alpha string containing the database name.
|
Returns:
|
Boolean (True, False). Returns True when the Disconnect operation has succeeded, and False when the Disconnect operation has not succeeded or when there is no connection to disconnect.
|
Usage:
|
Disconnect from the local database in order to replace it with another database file (using ServerFileToClient) after a connection was already created.
|
Note:
|
To disconnect from a server database, see DbDiscnt.
|
Example:
|
ClientDbDiscnt('Local'), where Local is the local database's name defined in the Database repository.
|