Select a new work area and retrieve the current work area.
XSharp.RT (in XSharp.RT.dll) Version: 2.6
Syntax Request Example
nNew AS USUAL := NIL
) AS DWORD
public static uint DbSelect(
Usual nNew = null
- nNew (Optional)
- Type: Usual
The work area number for the new work area.
The work area number for the old work area.
DBSelect() allows you to change the current work area and also retrieve the number of the current work area.
This is useful in a group programming project or when writing black-box general routines: each time a module changes the environment by selecting a new work area, you must save and restore the old environment.
The following example sets a new work area and stores the number of the current work area:
1nOld := 0
2nNew : = 10
3nOld := DBSelect(nNew)
7? "New work area :", Select()
8? "Workarea selected before :", nOld