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


Syntax:     EMPTY(<exp>)

Purpose:    To determine if the result of an expression is empty.

Argument:   <exp> is an expression of any data type.

Returns:    A logical value.

            EMPTY() returns true (.T.), depending on the data type of
            the argument and according to the following criteria:


            Table: List of Empty Values
            ------------------------------------------------
            Data Type         Contents
            ------------------------------------------------
            Character         Null or
                              All spaces, tabs, or CR/LF
            Numeric           0
            Date              Null
            Logical           .F.
            ------------------------------------------------

Library:    CLIPPER.LIB


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

   ? EMPTY(SPACE(5))          && Result: .T.
   ? EMPTY("")                && Result: .T.
   ? EMPTY(0)                 && Result: .T.
   ? EMPTY(CTOD(""))          && Result: .T.
   ? EMPTY(.F.)               && Result: .T.
   *
   USE Sales
   APPEND BLANK
   ? EMPTY(Branch)            && Result: .T.

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