EMPTY()
Checks if the passed argument is empty.
- Syntax
-
- EMPTY( <xExp> ) --> lIsEmpty
- Arguments
-
- <xExp> is any valid expression.
- Returns
-
- A logical value. It is true (.T.) if the passed argument is empty otherwise it is false (.F.).
- Description
-
- This function checks if an expression has empty value and returns a logical indicating whether it the expression is empty or not.
Examples
? EMPTY( "I'm not empty" ) // .F.
Tests
FUNCTION Test()
? EMPTY( NIL ) // .T.
? EMPTY( 0 ) // .T.
? EMPTY( .F. ) // .T.
? EMPTY( "" ) // .T.
? EMPTY( 1 ) // .F.
? EMPTY( .T. ) // .F.
? EMPTY( "smile" ) // .F.
? EMPTY( Date() ) // .F.
RETURN NIL
- Status
- Ready
- Compliance
-
- EMPTY() is fully CA-Clipper compliant.
- Files
-
- Library is rtl
- See Also