# SELECT()

Returns the work area number for a specified alias.

Syntax

  SELECT([<cAlias>]) --> nWorkArea

Arguments

  <cAlias> is the target work area alias name.

Returns

  SELECT() returns the work area number.

Description

  This function returns the work area number for the specified alias name <cAlias>.If no parameter is specified,the current work area will be the return value of the function.

Examples

          USE TESTS NEW
          USE NAMES NEW
          cOldArea:=SELECT("NAMES")
          select TEST
          LIST
          SELECT cOldArea

Status

  Ready

Compliance

  This function is Ca-Clipper compliant

Files

  Library is rdd

See Also

- ALIAS()
- USED()