Checks whether a string is null.
Kernel.bdh
StrIsNull( in sString : string ) : boolean;
true if successful
false otherwise
Parameter | Description |
---|---|
sString | String to be checked for null. |
dcltrans transaction TMain var sString : string; begin if StrIsNull(sString)then Print("sString is null"); else Print("sString is not null"); end; if StrIsEmpty(sString) then Print("sString is empty"); else Print("sString is not empty"); end; StrSetNull(sString); if StrIsNull(sString)then Print("sString is null"); else Print("sString is not null"); end; if StrIsEmpty(sString) then Print("sString is empty"); else Print("sString is not empty"); end; end TMain;
sString is not null sString is empty sString is null sString is empty