RDD

DbSelectArea()

Change the current work area

Syntax

Signature
DbSelectArea( nArea | cAlias ) --> NIL

Arguments

nArea

Work-area number, or cAlias alias to select.

Return value

NIL.

Description

DbSelectArea() changes the selected work area by number or alias. The selected area becomes the target of subsequent database operations.

Notes

The alias must exist when an alias is supplied.

Example

DbSelectArea.prg
PROCEDURE Main()

   DbUseArea( .T., , "people.dbf", "People" )
   DbSelectArea( "People" )
   QOut( "Selected: " + Alias() )
   DbCloseArea()

RETURN

Output

See also