下面的代码,在Delphi5中完全正确,但在Delphi7中,却报出了
“undeclared identifier: 'Null'
的错误,不知是何原因?function GetAppValue(StrTitle: String):String;
begin
try
If not (frmMain.ClientDataSet2.Lookup('Item',StrTitle,'Value')=Null) Then
Result:=frmMain.ClientDataSet2.Lookup('Item',StrTitle,'Value')
else
Result:='';
except
Result:='';
end;
end;
“undeclared identifier: 'Null'
的错误,不知是何原因?function GetAppValue(StrTitle: String):String;
begin
try
If not (frmMain.ClientDataSet2.Lookup('Item',StrTitle,'Value')=Null) Then
Result:=frmMain.ClientDataSet2.Lookup('Item',StrTitle,'Value')
else
Result:='';
except
Result:='';
end;
end;
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货