Click or drag to resize

VoDbSetRelation Function

X#
Relate a specified work area to the current work area.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.19
Syntax
 FUNCTION VoDbSetRelation(
	cAlias AS STRING,
	cbRel AS USUAL,
	cRel AS STRING,
	 cName AS STRING
) AS LOGIC
Request Example View Source

Parameters

cAlias
Type: String
The alias of the child work area.
cbRel
Type: Usual
A code block that expresses the relational expression in executable form.
cRel
Type: String
The relational expression in textual form.
It must be equivalent to cbRel.
To omit, specify a NULL_STRING.
cName
Type: String

Return Value

Type: Logic
TRUE if successful; otherwise, FALSE.
Remarks
VODBSetRelation() is like DBSetRelation() 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 DbSetRelation(Usual, Usual, Usual, Usual) for more information and an example.
Examples