Click or drag to resize

VoDbGetSelect Function (String)

X#
Return the work area number for a certain alias

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.19
Syntax
 FUNCTION VoDbGetSelect(
	sArea AS STRING
) AS DWORD
Request Example View Source

Parameters

sArea
Type: String
The name of the alias to look for. This is NOT case sensitive.

Return Value

Type: DWord
A number from 0 to 4096. When the alias is not used (in the current thread) then the return value is 0. Otherwise it is the area number of the area that has this alias.
Remarks
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 DbGetSelect for more information and an example.
Examples