下面的代码,在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;