Select Function | |
Determine the number of a work area.
Namespace:
XSharp.RT
Assembly:
XSharp.RT (in XSharp.RT.dll) Version: 2.19
Syntax FUNCTION Select(
uWorkArea
) AS USUAL CLIPPER
[ClipperCallingConventionAttribute(new string[] { ... })]
public static Usual Select(
Usual uWorkArea = default
)
Request Example
View SourceParameters
- 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:
1USE sales NEW
2USE customer NEW
3QOut(Select())
4QOut(Select(#sales))
5QOut(Select("customer"))
6QOut(Select("sales"))
See Also