Page 1 of 1

Problem with ParamByName

Posted: Wed 14 Feb 2007 20:29
by japi
Hello,

I get the error Parameter iPK not found.

iPK = 3;
MyQuery1->SQL->Clear();
MyQuery1->Close();
MyQuery1->SQL->Add("delete from streets where PK = :iPK");
MyQuery1->ParamByName("iPK")->AsInteger = iPK;
MyQuery1->Execute();

What is wrong with this ?
I use BCB5, MySql 5 and CoreLab 5.00.0.1

Thanks,
Jan

Posted: Thu 15 Feb 2007 09:45
by Antaeus
We could not reproduce the problem. Please check that the value of the ParamCheck property is set to True.