Delphi null與Empty的區別code
procedure TForm1.Button1Click(Sender: TObject); var i:OleVariant; begin i:=null;// 註釋掉這句 再運行 if VarIsNull(i) then showmessage('null'); if VarIsEmpty(i) then showmessage('empty'); end;
Delphi null與Empty的區別code
procedure TForm1.Button1Click(Sender: TObject); var i:OleVariant; begin i:=null;// 註釋掉這句 再運行 if VarIsNull(i) then showmessage('null'); if VarIsEmpty(i) then showmessage('empty'); end;