Guest User

Untitled

a guest
Nov 22nd, 2017
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. type
  2. TTaxValues = class(TStringList)
  3. private
  4. const DEFAULT_TAX_VALUES = '18,10,18/118,10/110,0';
  5. public
  6. procedure AfterConstruction; overide;
  7.  
  8. function IDOfTax(const ATaxValue: string): Integer;
  9. end;
  10.  
  11. procedure TTaxValues.AfterConstruction;
  12. begin
  13. inherited;
  14. CommaText := DEFAULT_TAX_VALUES;
  15. end;
  16.  
  17. function TTaxValues.IDOfTax(const ATaxValue: string): Integer;
  18. begin
  19. Result := IndexOf(ATaxValue);
  20. end
  21. ..
Add Comment
Please, Sign In to add comment