Click or drag to resize

_Select Function

X#
Determine the number of a work area.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.21
Syntax
 FUNCTION _Select(
	uWorkArea
) AS USUAL CLIPPER
Request Example View Source

Parameters

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.
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#
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