所有程序应该做的一个常见条件是检查字符串是否为空.
采取以下声明:
(1)
if Length(Str)=0 then // do something
(2)
if Str='' then // do something
delphi
delphi ×1