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>nul()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
NUL()

Syntax:     NUL([<expX>])

Arguments:  <expX> is the expression, or the function, for which the
            return value must be suppressed.

Returns:    A character string.
            A null string is always returned.

Usage:      NUL() converts any function with a return value into a
            function which returns a null string instead.  It is then
            possible for the return value for each function to be
            suppressed.

Notes:      The function is not really void since it returns a null
            string.  The function should therefore not be used in
            comparisons with other data types (see example).

Library:    CT1.LIB


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

Examples:   * Wait for a depression of a key.
            ? "Please press a key:" + NUL(INKEY(0))

            or:

            * An output via LIST, which waits for a key
            * to be pressed after 20 lines in each case.
            LIST name, IIF(RECNO()%20 = 0,NUL(INKEY(0)),"")

            * A type mismatch would occur in this case.
            ? 3 = NUL(INKEY(5))                 && Error after 5
                                                && seconds.
            ? 7 + NUL(INKEY())                  && Will also lead
                                                && to the error.



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