loCaseInsensitive notrecognised lazarus / 16-Databases ---------------------------------------------------------------------- davesimplewear · 2021-08-20 05:40 Hi I use the Locate function with locate optiions in the latest version of lazarus and the loCaseInsensitive  is not recognised only the loPartialKey,has anyone had the same problem and how to fix it/ ---------------------------------------------------------------------- balazsszekely · 2021-08-20 07:15 Quote from: davesimplewear on August 20, 2021, 07:40:17 amHi I use the Locate function with locate optiions in the latest version of lazarus and the loCaseInsensitive  is not recognised only the loPartialKey,has anyone had the same problem and how to fix it/ The following code compiles both with Lazarus 2.0.12/Trunk and FPC 3.2.0: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i uses DB; procedure TForm1.FormCreate(Sender: TObject);begin  SQLQuery1.Locate('ID', 32, [loCaseInsensitive, loPartialKey]);end; Where SQLQuery1 is a TSQLQuery. Both loCaseInsensitive and loPartialKey are declared in unit db.pas: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i   TLocateOption = (loCaseInsensitive, loPartialKey);  TLocateOptions = set of TLocateOption;  I don't see how loCaseInsensitive is not recognized while loPartialKey is. Can you please attach a small demo project where the issue is present.