IsEmpty: Boolean;
The IsEmpty method returns the attribute of empty variable value.
If the variable value is an empty string, the method returns True, otherwise it returns False.
Sub UserProc;
Var
s1, s2: String;
b, b1: Boolean;
Begin
s1 := "";
s2 := "abcdef";
b := s1.IsEmpty;
b1 := s2.IsEmpty;
Debug.WriteLine(b);
Debug.WriteLine(b1);
End Sub UserProc;
After executing the example the "b" variable contains True, and the "b1" variable contains False.
See also: