Recent

Author Topic: [SOLVED] Can't compile when coding a case insensitive locate function  (Read 1969 times)

phylax

  • Newbie
  • Posts: 6
Hi,

I have the following lines of code in my program:

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


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.
« Last Edit: February 16, 2015, 01:29:15 pm by phylax »

balazsszekely

  • Guest
Re: Can't compile when coding a case insensitive locate function
« Reply #1 on: February 16, 2015, 01:11:47 pm »
uses db;

phylax

  • Newbie
  • Posts: 6
Re: [SOLVED] Can't compile when coding a case insensitive locate function
« Reply #2 on: February 16, 2015, 01:30:20 pm »
Thanks again, GetMem. Knew it'd be something simple.  :)

 

TinyPortal © 2005-2018