Click or drag to resize

_Select Function

Determine the number of a work area.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.10
Syntax
 FUNCTION _Select(
	 uWorkArea AS USUAL
) AS USUAL
View Source

Parameters

uWorkArea
Type: Usual
A value that identifies the work area.  This can be the number of the work area or its alias, specified either as a symbol or a string.  If <uWorkArea> is not specified, the current work area number is returned.  Therefore, Select() is the same as DBGetSelect().

Return Value

Type: Usual
A number from 0 to 1023.  0 is returned if <uWorkArea> does not identify a valid work area or does not correspond to a valid alias.

Return Value

Type: Usual
A number from 0 to 4096. 0 is returned if xValue does not identify a valid work area or does not correspond to a valid alias.
Remarks
The Select() function and SELECT command specified with an extended expression argument look somewhat alike.
Examples
This example shows how Select() takes different arguments:
X#
USE sales NEW
USE customer NEW
QOut(Select())                                // Result: 2
QOut(Select(#sales))                // Result: 1
QOut(Select("customer"))                // Result: 2
QOut(Select("sales"))                // Result: 1
See Also