[Lazarus] Replacement for deprecated symbol "Lookup"

Juha Manninen juha.manninen62 at gmail.com
Sat Dec 26 18:45:33 CET 2015


On Sat, Dec 26, 2015 at 7:25 PM, Michael Van Canneyt
<michael at freepascal.org> wrote:
> Use Locate instead.

They are actually TField.Lookup properties. TField does not have Locate.
All the "deprecated" warnings come from Lookup getters which is implemented as :

function TField.GetLookup: Boolean;
begin
  Result := FieldKind = fkLookup;
end;

Maybe I just use "FieldKind = fkLookup". Easy piecy. Unfortunately
there is no hint message after the "deprecated" keyword saying like
"Use xxx instead". Such hints were not supported by FPC a while ago.

Juha




More information about the Lazarus mailing list