Board index » delphi » Record not found error on Locate
Roger Graham
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Record not found error on Locate
We have a number of TCheckBox components that we wish set the Checked
property, depending on the presence of an associated code in a detail table. The check box references an array of codes which is then used in a Locate statement on the detail table type then we use the following code to update all the CheckBoxes for i:=1 to NumSpecBoxes do begin function TDMHomes1.GetSpecialism(ACode: string): boolean; The first two calls to GetSpecialisms (codes 'uv' and 'uw') work fine, What is going on? Locate should return false if it cannot find a record, Environment is Windows 95, Delphi 3.02, BDE 5.00, Interbase v 5.1.1.680 -- |