Xbasic

ISNULL Function

Syntax

Result_Flag as L = Isnull(C String )

Arguments

String

A character string.

Description

Returns .T. if String is empty.

Discussion

ISNULL() returns .T. (TRUE) if a character string is blank (i.e. contains a NULL value); otherwise, it returns .F. (FALSE).

Example

' if COMPANY contains "Alpha Software"
? isNULL(COMPANY)
= .F.
' if COMPANY contains ""
? isNULL(COMPANY)
= .T.

? isNULL("       ")
= .T.

See Also