|
of_connect
|
|
Full name
|
vg_n_cst_vgmanager.of_connect
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_connect(readonly string,readonly string)
|
public function integer of_connect (readonly string as_userid, readonly string as_password);/*_____________________________________________________________________________
Description : Connect the transaction object of Visual Guard to the base containing security informations.
Usage : Call this function to connect Visual Guard to the security database.
By default, Visual Guard uses the INI-file whose name is equal to the name of the application object.
If you want to specify the INI-File name or the registry key, you must call the of_connectfrom method.
The default INI-File section or registry key is [Security]. You can specify the section name by calling of_setsection method.
The INI-file section or registry key must include the following keywords (with DBMS-specific values as appropriate):
DBMS
Database
LogID
LogPass
ServerName
UserID
DatabasePassword
Lock
DbParm
If you want to connect by yourself Visual Guard to the security database, you can use
of_settransobject.
You can use the of_settransobject method by passing a transaction object already
connected.
Argument : string as_login : String specifying the login ID.
string as_pwd : String specifying the password.
Return : 1 if it succeeds and -1 if an error occurs, -2 if the structure of the database is not correct.
History :
V7.50 - HC - 08/06/2000 - Initial version
_____________________________________________________________________________*/
Return iuo_vgsecurity.of_connect (as_userid, as_password)
end function