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>clear gets</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
CLEAR GETS


Syntax:     CLEAR GETS

Purpose:    To release all pending GETs.

Usage:      CLEAR GETs can be used in a number of applications which
            include:

            . Exiting a READ within a SET KEY procedure without saving
              the current GET

            . Painting GETs from multiple records without READing

Library:    CLIPPER.LIB

----------------------------------- Example --------------------------------

   USE Customers

   CLEAR

   DO WHILE .T.
      CLEAR GETS

      PaintGets()
      menuchoice = GetMenuChoice()

      IF menuchoice = 0
         * Esc..quit.
         EXIT

      ELSEIF menuchoice = 1
         * Edit record.
         READ

      ELSEIF menuchoice = 2
         * Next record.
         SKIP

      ELSEIF menuchoice = 3
         * Previous record.
         SKIP -1

      ENDIF

   ENDDO
   RETURN

See Also: @...CLEAR CLEAR

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