tw8140e.pp 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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; overload;
  23. end;
  24. tc = class(tinterfacedobject,imselocate2)
  25. function locate(const key: integer; const field: tfield;
  26. const options: locateoptionsty = []): locateresultty;
  27. function locate(const key: string; const field: tfield;
  28. const options: locateoptionsty = []): locateresultty;overload;
  29. end;
  30. function tc.locate(const key: integer; const field: tfield;
  31. const options: locateoptionsty = []): locateresultty;
  32. begin
  33. end;
  34. begin
  35. end.