RddSetDefault Function | |
Return and optionally change the default RDD for the application.
Namespace:
XSharp.RT
Assembly:
XSharp.RT (in XSharp.RT.dll) Version: 2.19
Syntax FUNCTION RddSetDefault() AS STRING
public static string RddSetDefault()
Request Example
View SourceReturn Value
Type:
String
If
cNewSetting is specified as a NULL_STRING, RDDSetDefault() returns the current default RDD.
If
cNewSetting is specified, the previous default RDD is returned.
Remarks
Unless established with a call to RDDSetDefault() (or some other function that explicitly sets the default), the name of the default RDD is undetermined.
This function replaces the DBSetDriver() function.
To return the default RDD without changing it, use DBDriver().
Examples
The following example checks the default RDD, then sets a different one if necessary:
1IF RDDSetDefault("") == "DBFMDX"
2 RDDSetDefault("DBFNTX")
3ENDIF
See Also