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.6
 FUNCTION _Select(
	uWorkArea AS USUAL := NIL
Request Example View Source


uWorkArea (Optional)
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 4096.  0 is returned if <uWorkArea> does not identify a valid work area or does not correspond to a valid alias.
The Select() function and SELECT command specified with an extended expression argument look somewhat alike.
This example shows how Select() takes different arguments:
1USE sales NEW
2USE customer NEW
3QOut(Select())                // Result: 2
4QOut(Select(#sales))        // Result: 1
5QOut(Select("customer"))        // Result: 2
6QOut(Select("sales"))        // Result: 1
See Also