Click or drag to resize

RddSetDefault Function

X#
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
Request Example View Source

Return 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:
X#
1IF RDDSetDefault("") == "DBFMDX"
2    RDDSetDefault("DBFNTX")
3ENDIF
See Also