Click or drag to resize

DbGetSelect Function

X#
Return the work area number.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.21
Syntax
 FUNCTION DbGetSelect() AS DWORD
Request Example View Source

Return Value

Type: DWord
A number that indicates the workarea number.
Remarks
DBGetSelect() is the recommended way to get the number of the currently selected work area. It does not, however, retrieve any information about the occupation of this work area by a database.
Examples
The following example checks for a current work area:
X#
1IF !USED(DBGetSelect())
2    QOut("No work area in use.")
3ENDIF
See Also