Forum > Beginners

[SOLVED] Can't compile when coding a case insensitive locate function

(1/1)

phylax:
Hi,

I have the following lines of code in my program:


--- Code: ---if dmLabelView.qryLabel.Locate('ABNAME', AbNameEdit.Text, [loCaseInsensitive]) then
    begin
    ShowMessage('Name already exists');
    AbNameEdit.SetFocus;
    Exit;
    end;
--- End code ---


qryLabel is an instance of TSQLQuery; dmLabelView is a datamodule whose unit is included in the "uses" list of the unit in which the code is written.

When I compile I get the error: Identifier not found "loCaseInsensitive".

Surely this must be an error only a newbie such as myself would make. Any ideas?

Thanks in advance.

GetMem:
uses db;

phylax:
Thanks again, GetMem. Knew it'd be something simple.  :)

Navigation

[0] Message Index

Go to full version