Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide To Clipper - <b>select()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
SELECT()


Syntax:     SELECT([<expC>])

Purpose:    To return the work area number of an alias.

Argument:   <expC> is the alias name whose work area number you want
            to return.

Returns:    An integer numeric value.

            SELECT() returns a numeric value in the range from zero to
            250--work areas above 250 are reserved.  If <expC> is not
            specified, the number of the current work area is returned.
            If <expC> is specified and the alias does not exist,
            SELECT() returns zero.

Library:    CLIPPER.LIB


----------------------------------- Examples -------------------------------

   ? SELECT()                 && Result: 1
   SELECT 4
   ? SELECT()                 && Result: 4
   *
   USE Sales
   SELECT 1
   ? SELECT("Sales")          && Result: 4

   To reselect the value that was returned from the SELECT() function,
   use the SELECT command with the syntax: SELECT (<memvar>).  For
   example:

   SELECT 1
   USE File1
   last_area = SELECT()
   SELECT 3
   USE File2
   SELECT (last_area)
   ? SELECT()                 && Result: 1


See Also: SELECT USE ALIAS()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson