tw8140d.pp 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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; overload;
  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. function locate(const key: string; const field: tfield; overload;
  28. const options: locateoptionsty = []): locateresultty;
  29. end;
  30. function tc.locate(const key: integer; const field: tfield;
  31. const options: locateoptionsty = []): locateresultty;
  32. begin
  33. end;
  34. function tc.locate(const key: string; const field: tfield;
  35. const options: locateoptionsty = []): locateresultty;
  36. begin
  37. end;
  38. begin
  39. end.