DbSetDriver Function | |
Return and optionally change the default RDD driver for the application.
Namespace:
XSharp.RT
Assembly:
XSharp.RT (in XSharp.RT.dll) Version: 2.19
Syntax FUNCTION DbSetDriver(
cNewSetting
) AS STRING CLIPPER
[ClipperCallingConventionAttribute(new string[] { ... })]
public static string DbSetDriver(
Usual cNewSetting = default
)
Request Example
View SourceParameters
- cNewSetting (Optional)
- Type: Usual
The name of the RDD that will be used to activate and manage applications when no driver is explicitly specified.
If this RDD is not available to the application, the call has no effect.
Return Value
Type:
String
If
cNewSetting is not specified, DBSetDriver() returns the current default RDD.
If
cNewSetting is specified, the previous default RDD is returned.
Remarks Tip |
---|
DBSetDriver() is a compatibility function and is no longer recommended.
It is superseded by the RDDSetDefault() function. See RDDSetDefault() for more information.
|
Examples
This example makes the DBFMDX driver the default RDD.
If the RDD is unavailable, a message is issued:
1DBSetDriver("DBFMDX")
2IF DBSetDriver() != "DBFMDX"
3 QOut("DBFMDX driver not available")
4ENDIF
See Also