Avaliação do Usuário

Estrela inativaEstrela inativaEstrela inativaEstrela inativaEstrela inativa
 

Empty()

Checks if the passed argument is empty.
Syntax
Empty( <xExp> ) --> lIsEmpty
Argument(s)
<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.
Example(s)
PROCEDURE Main()
   ? Empty( "I'm not empty" ) // .F.
   ? Empty( NIL )             // .T.
   ? Empty( 0 )               // .T.
   ? Empty( .F. )             // .T.
   ? Empty( "" )              // .T.
   ? Empty( 1 )               // .F.
   ? Empty( .T. )             // .F.
   ? Empty( "smile" )         // .F.
   ? Empty( Date() )          // .F.
   RETURN
Status
Ready
Compliance
This is CA-Cl*pper v5.2 compliant
File(s)
Library is core
See also

Len()