Click or drag to resize

VoDbSymSelect Function

X#
Select a new work area by specifying its alias as a symbol and return the number of the current work area.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.19
Syntax
 FUNCTION VoDbSymSelect(
	symAlias AS SYMBOL
) AS LONG
Request Example View Source

Parameters

symAlias
Type: Symbol
The alias of the work area you want to select.

Return Value

Type: Long
The number of the current work area.
Remarks
VODBSymSelect() is like DBSymSelect() 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 DbSymSelect(Usual) for more information
Examples
This example uses VODBSymSelect() to change work areas:
X#
1FUNCTION ChangeArea() AS VOID
2    USE test
3    USE address NEW
4    ? Alias()            // Address
5    VODBSymSelect(#Test)
6    ? Alias()            // Test
See Also