Skip to content

LoginConnectIdBase - cConnection

Attempts the actual login

Type: Function
Return Data Type: Integer

Parameters

Parameter Type Description
sId String Connection ID
bSilent Boolean Determines whether a login dialog should be presented if the login attempt fails

Syntax

Function LoginConnectIdBase String sId Boolean bSilent Returns Integer

Call Example

Get LoginConnectIdBase sId bSilent to IntegerVariable

Description

LoginConnectIdBase attempts the actual login.

First, it attempts a silent login using the credentials that were defined during the add connection process.

If this fail and the bSilent parameter is False, it calls LoginConnectIdDialog, which will optionally pop up a database login dialog.

It returns success or failure. An error status is returned (see piErrorNumber, piErrorLine and psErrorText).

Return Value

Status: 0 = Success, 1 = Failed