Click or drag to resize

VoDbRelation Function

X#
Return the linking expression of a specified relation.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.19
Syntax
 FUNCTION VoDbRelation(
	wRelation AS DWORD,
	pszRelation REF STRING
) AS LOGIC
Request Example View Source

Parameters

wRelation
Type: DWord
The position of the desired relation in the list of current work area relations.
The relations are numbered according to the order in which they were defined with SET RELATION.
pszRelation
Type: String
The position of the desired relation in the list of current work area relations.
The relations are numbered according to the order in which they were defined with SET RELATION.

Return Value

Type: Logic
The linking expression defined to wRelation.
If there is no relation set for wRelation, VODBRelation() returns a NULL_STRING.
TRUE if successful; otherwise, FALSE.
Remarks
VODBSetRelation() is similar to DBRelation(). 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 DbRelation(Usual) for more information
Examples