Delphi null與Empty的區別

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;
相關文章
相關標籤/搜索