Checks whether a string is empty.
Kernel.bdh
StrIsEmpty( in sString : string allownull ): boolean;
true if string is empty or null
false otherwise
Parameter | Description |
---|---|
sString | String to be checked. |
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