Solved

About Locate method - Very Easy

Posted on 2003-11-04
4
1,164 Views
Last Modified: 2009-07-29
Whats wrong with the following command?

Form2.DataSource1.DataSet.Locate('Name',Form5.Edit1.Text,[loCaseInsensitive, loPartialKey]);

???

I get errors when compiling the project. Should i put something in the 'uses' unit ?
I get undeclared identifier for 'partial key' and 'case insesitive' and another error for compining 'integer' with 'locate option'.
Thanks.
0
Comment
Question by:CodedK
  • 2
  • 2
4 Comments
 
LVL 5

Accepted Solution

by:
scrapdog earned 25 total points
ID: 9683350
Make sure the unit "DB" is in your uses clause.
0
 
LVL 16

Author Comment

by:CodedK
ID: 9683389
Thank you very much. This works.
I added db a few seconds after i asked the question. :)

Can you tell me please how to stop-remove a question. For the future....(not to ask silly questions)..
Thank you scrapdog.
0
 
LVL 16

Author Comment

by:CodedK
ID: 9683395
Of cource i will accept your answer but i am afraid that this will close the comment status ... (You want be able to answer) i think...
0
 
LVL 5

Expert Comment

by:scrapdog
ID: 9690971
I'm not sure how the new E-E works...so your guess is as good as mine...
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now