iID := 2;
if ClientDataSet.Locate('id', iID, []) then showmessage('OK') ;上面代码中 字段 id 是SQLSERVER数据库中种子递增 字段,并且是主键,运行代码的时候发现
ClientDataSet.Locate 方法出现异常“Constant is not correct type 1”,哪位大侠知道这是怎么回事啊?怎么解决呢??谢谢!!!!
if ClientDataSet.Locate('id', iID, []) then showmessage('OK') ;上面代码中 字段 id 是SQLSERVER数据库中种子递增 字段,并且是主键,运行代码的时候发现
ClientDataSet.Locate 方法出现异常“Constant is not correct type 1”,哪位大侠知道这是怎么回事啊?怎么解决呢??谢谢!!!!
var
strID: string;
...
strID := '2';
if ClientDataSet.Locate('id', strID, []) then
showmessage('OK') ;
begin
tt:='2' ;if clientdataset1.Locate('OK',tt,[]) then
ShowMessage('Ok');