tw8140c.pp 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. end;
  20. imselocate2 = interface(imselocate)['{2680958F-F954-DA11-9015-00C0CA130801}']
  21. function locate(const key: string; const field: tfield;
  22. const options: locateoptionsty = []): locateresultty;
  23. end;
  24. tc = class(tinterfacedobject,imselocate2)
  25. function locate(const key: integer; const field: tfield;
  26. const options: locateoptionsty = []): locateresultty;
  27. end;
  28. function tc.locate(const key: integer; const field: tfield;
  29. const options: locateoptionsty = []): locateresultty;
  30. begin
  31. end;
  32. begin
  33. end.