Skip to content

LoginConnectIdDialog - cConnection

Pops up a database login dialog, which will allow the user to log in and store the login credentials

Type: Function
Return Data Type: Boolean

Parameters

Parameter Type Description
sId String Connection ID

Syntax

Function LoginConnectIdDialog String sId Returns Boolean

Call Example

Get LoginConnectIdDialog sId to BooleanVariable

Description

LoginConnectIdDialog pops up a database login dialog, which will allow the user to log in and store the login credentials.

This is controlled by pbLoginDialogRequired. If false, no login attempt occurs. If true, this will send LoginConnectIdDialog to the database login dialog.

This dialog is identified by the ghoLoginConnectDialog property, which must be set when pbLoginDialogRequired is true. This is normally set by the database login dialog when it is created, which is typically done by adding the DatabaseLoginDialog.dg package to your application.

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

Return Value

Status: True = Success, False = Failed