ReportQueue.ConnectToDB Method
|
|
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
[ClipperCallingConventionAttribute(new string[] { ... })]
public virtual Usual ConnectToDB(
Usual cDbName = default,
Usual cUserName = default,
Usual cPassword = default
) Request Example
View SourceParameters
- 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:
1oRQ:ConnectToDB("CA Xbase")
See Also