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

Syntax:     BLANK([@][<expX>][,<expL>])

Arguments:  <expX> may be any valid expression of any type.
            <expL> determines whether the length of a string is to be
            changed.

Returns:    Variable.
            The return value will receive the same data type as the
            argument.

Usage:      BLANK() deletes (empties) any data fields or variables.
            BLANK() will then provide the following results:

            Argument                Return value
            --------                ------------
            Character string        A null or blank string
            Numeric                 The value 0
            Logic                   The value (.F.)
            Date                    A blank date

            The default setting is (.F.), so that a string becomes a null
            string.  If the argument is (.T.), the length of the string will
            not be changed.

Notes:      BLANK() will handle a date regardless of the SET DATE
            command.  The display of the generated blank date will be
            in the selected country format.

Library:    CT1.LIB


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

Examples:   * Function call-up                  && Return value
            ? BLANK()                           && .F.
            ? BLANK(.T.)                        && .F.
            ? BLANK(99)                         && 0
            ? BLANK("abc")                      && "   "
            ? BLANK("11:59:59")                 && "   "
            ? BLANK(DATE())                     && blank date
            ? BLANK("abc",.T.)                  && "   " blank string



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