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>go/goto</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
GO/GOTO


Syntax:     GO/GOTO <expN>/BOTTOM/TOP

Purpose:    To move the record pointer to a specific record in the
            current work area.

Argument:   <expN> is the specific record to move the record pointer
            to.  GOTO moves the record pointer to this record even if
            DELETED is ON or it falls outside the scope of the current
            FILTER.

Options:    Bottom: GO/GOTO BOTTOM moves to the last logical record
            in the current work area if there is an active index or
            LASTREC() if there isn't one.  If DELETED is ON or an active
            FILTER, GO BOTTOM moves to the last logical record that is
            not deleted and/or matches the filter condition.

            Top: GO/GOTO TOP moves to the first logical record in
            the current work area if there is an active index or record
            1 if there is no index in USE.  If DELETED is ON or there is
            an active FILTER, GO TOP moves to the first logical record
            that is not deleted and/or matches the filter condition.

Library:    CLIPPER.LIB


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

   USE Sales
   ? LASTREC()                    && Result: 84

   GO TOP
   ? RECNO()                      && Result: 1

   GO BOTTOM
   ? RECNO()                      && Result: 84

   GO 5
   ? RECNO()                      && Result: 5

   GO 5 + 15
   ? RECNO()                      && Result: 20


See Also: SKIP LASTREC() RECNO()

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