Click or drag to resize

VoDbRddSetDefault 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 VoDbRddSetDefault(
	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.

Return Value

Type: String
If cNewSetting is not specified, VODBRDDSetDefault() returns the current default RDD.
If cNewSetting is specified, the previous default RDD is returned.
Remarks
VODBRDDSetDefault() is like RDDSetDefault() but is strongly typed. This function, however, does not call the error handler and will not, therefore, produce a runtime error message or create an error object if it fails. Thus, it may be important to check the return value to determine if the function succeeded.
the LastRddError property in the runtime state. will contain needed information regarding any error that occurs.
See RddSetDefault() for more information
Examples