djjd47130

Case

Dec 31st, 2015
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.81 KB | None | 0 0
  1.  
  2. function FltToInt(const Flt: TLookupFlt): Integer;
  3. begin
  4.   case Flt of
  5.     lfCategory:   Result:= 9;
  6.     lfUnit:       Result:= 21;
  7.     lfDesign:     Result:= 10;
  8.     lfField:      Result:= 15;
  9.     lfType:       Result:= 14;
  10.     lfOrigin:     Result:= 11;
  11.     lfContent:    Result:= 12;
  12.     lfCondition:  Result:= 13;
  13.     lfColor:      Result:= 8;
  14.     lfShape:      Result:= 30;
  15.     lfStyle:      Result:= 31;
  16.   end;
  17. end;
  18.  
  19. function IntToFlt(const Val: Integer): TLookupFlt;
  20. begin
  21.   case Val of
  22.     9: Result:= lfCategory;
  23.     21: Result:= lfUnit;
  24.     10: Result:= lfDesign;
  25.     15: Result:= lfField;
  26.     14: Result:= lfType;
  27.     11: Result:= lfOrigin;
  28.     12: Result:= lfContent;
  29.     13: Result:= lfCondition;
  30.     8: Result:= lfColor;
  31.     30: Result:= lfShape;
  32.     31: Result:= lfStyle;
  33.   end;
  34. end;
Advertisement
Add Comment
Please, Sign In to add comment