An error occurred. Could someone help me solve this problem? Delphi/Windows SDK/API
Http://www.delphi2007.net/DelphiDB/html/delphi_20061225053606125.html
I wrote a Section Program :
A_database.adoquery2.close;
A_database.adoquery2. SQL .clear;
A_database.adoquery2. SQL .add ('select xulh, ximng from lxr order by xulh ');
A_database.adoquery2.open;
A_database.adoquery2.locate ('xulh', trim (f_changj_lxr.edit1.text), [locaseinsensitive]);
During compilation, the system says that the location of this error is:
A_database.adoquery2.locate ('xulh', trim (f_changj_lxr.edit1.text), [locaseinsensitive]);
The prompt in the system box is as follows:
[Error] f_cj_lxr.pas (262): Undeclared identifier: 'lseinsensitive'
[Error] f_cj_lxr.pas (262): incompatible types: 'tlocateoption 'and 'integer'
[Fatal error] jinchjl. DPR (13): cocould not compile used unit 'f _ cj_lxr.pas'
What I don't understand is that the same writing method is passed in other places, and it won't work here. Who can guide? Thank you.
Is dB. Pas not included in the module?
Uses dB;
With adoquery2 do
Begin
Close;
SQL. Clear;
SQL. Add ('select xulh, ximng from lxr order by xulh ');
Open;
Locate ('xulh', trim (f_changj_lxr.edit1.text), []);
> Undeclared identifier
> Incompatible types
Very common error messages are usually caused by careless
Unit not included
Zhengsq007 (internship practice): I did it most carefully and provided detailed methods. So I decided to give it to him most of the time. There are few other participants. Thank you!
Thank you for your support.