An error occurred. Could someone help me solve it.

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.