Click or drag to resize

VoDbRSelect Function

X#
Return the work area number of a relation.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.19
Syntax
 FUNCTION VoDbRSelect(
	wRelation AS DWORD
) AS DWORD
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 by the relation setting.

Return Value

Type: DWord
The work area number of the specified relation.
If there is no relation set for wRelation, VODBRSelect() returns 0.
Remarks
VODBRSelect() is like DBRSelect() 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 DbRSelect(Usual) for more information
Examples