Solved

About Locate method - Very Easy

Posted on 2003-11-04
4
1,165 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

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…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

895 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

18 Experts available now in Live!

Get 1:1 Help Now