Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Quick Question About TLocate

Status
Not open for further replies.

nikeloeleven

Programmer
Feb 15, 2005
32
0
0
GB
hi here's my Code to locate a record in a table called PUPIL

dataModMain.tblPupil.Locate('AdmissionNumber',editAdmissionNumber.text,LoPartialKey);

For some reason, when I try to compile, I get this error message: Undeclared Identifier "loPartialKey"....

Is there a command that I need to add in the "USES" section so that it recognises the "loPartial" code.... from the TLocateOptions type....

if not.. please help me on how to solve this problem...
 
You should have the [tt]loPartialKey[/tt] as a set in [tt][][/tt] like this:
Code:
Locate('AdmissionNumber', editAdmissionNumber.text, [loPartialKey, loCaseInsensitive]);
I tend to use the [tt]loCaseInsensitive[/tt] as well - check out the help on [tt]Locate[/tt]

Chris ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top