Select
This command changes the current work area. Don't confuse this command with the SELECT-SQL command or with the SELECT() function.
Usage |
SELECT cAlias | nWorkArea |
Example |
SELECT 0 && move to a new work area USE Customer * Move to another area and open another table SELECT 0 USE Orders * Switch back to Customer SELECT Customer * At the beginning of a "black box" routine, * it's good to save the work area; then, * at the end, restore it. LOCAL nSelect nSelect = SELECT() * now do some processing that changes the work area * now restore using indirect reference SELECT (nSelect) |
See Also |