tw8140a.pp 760 B

123456789101112131415161718192021222324252627282930
  1. { %fail }
  2. { %norun }
  3. {$ifdef fpc}
  4. {$mode delphi}
  5. {$endif}
  6. type
  7. inullinterface = interface
  8. //no referencecount, only for fpc, not available in delphi
  9. end;
  10. locateresultty = (loc_timeout,loc_notfound,loc_ok);
  11. tfield = class
  12. end;
  13. locateoptionty = (loo_caseinsensitive,loo_partialkey,
  14. loo_noforeward,loo_nobackward);
  15. locateoptionsty = set of locateoptionty;
  16. imselocate = interface(inullinterface)['{2680958F-F954-DA11-9015-00C0CA1308FF}']
  17. function locate(const key: integer; const field: tfield;
  18. const options: locateoptionsty = []): locateresultty;
  19. function locate(const key: string; const field: tfield;
  20. const options: locateoptionsty = []): locateresultty;
  21. end;
  22. begin
  23. end.