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

Syntax:     IMPUTMODE()

Returns:    A numeric value.
            The command currently used for keyboard input, or the last
            command issued if none are active.

Usage:      INPUTMODE() can be used in help routines to determine
            which input command the user is using, and to tailor help
            accordingly.

Note:       The table below shows the Return values and the
            corresponding meanings.

             Returned       Meaning
             --------       -------
                0           No input command used up to now
                1           WAIT
                2           ACCEPT
                3           INPUT
                4           READ
                5           MEMOEDIT()
                6           MENU
                7           INKEY()
                8           Debugger output


Library:    CT1.LIB


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

Examples:   PROCEDURE help
            PARAMETERS a,b,c

               area = SELECT()
               mode = INPUTMODE()

               IF mode = 5         && Called from MEMOEDIT()
                  DO memohelp
               ELSE
                  DO help
               ENDIF

               SELECT area

            RETURN




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