Click or drag to resize

RddSetDefault Function (String)

X#
Return and optionally change the default RDD for the application.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.21
Syntax
 FUNCTION RddSetDefault(
	cNewSetting AS STRING
) AS STRING
Request Example View Source

Parameters

cNewSetting
Type: String
The name of the RDD that will be used to activate and manage applications when no RDD is explicitly specified.
If this RDD is not available to the application, the call has no effect.
To return the current default RDD, specify NULL_STRING.

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