Click or drag to resize

ReportQueue.ConnectToDB Method

X#
Connect to an ODBC data source.

Namespace:  VO
Assembly:  VOReportClasses (in VOReportClasses.dll) Version: 2.24 GA
Syntax
 VIRTUAL METHOD ConnectToDB(
	cDbName,
	cUserName,
	cPassword
) AS USUAL CLIPPER
Request Example View Source

Parameters

cDbName (Optional)
Type: Usual
cUserName (Optional)
Type: Usual
The ODBC user name for this data source.
cPassword (Optional)
Type: Usual
The ODBC password or authorization string for this data source.

Return Value

Type: Usual
TRUE is successful; otherwise, FALSE. TRUE if successful; otherwise FALSE.
Remarks
The Report Editor requires an active database connection. Before opening a report, you must create a data source for the report database.
Examples
The following example connects to a "CA Xbase" data source:
X#
1oRQ:ConnectToDB("CA Xbase")
See Also