procedure TForm1.Button1Click(Sender: TObject);
var results:variant;
begin
results:=adotable1.lookup('username','tenny','password');
if results=288 then
showmessage('33');
end;
编译是提示:could not convert varient type of (null) into type (string)但运行是却能在表中找出正确的记录,为什么啊?
var results:variant;
begin
results:=adotable1.lookup('username','tenny','password');
if results=288 then
showmessage('33');
end;
编译是提示:could not convert varient type of (null) into type (string)但运行是却能在表中找出正确的记录,为什么啊?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货