home *** CD-ROM | disk | FTP | other *** search
/ C!T ROM 5 / ctrom5b.zip / ctrom5b / PROGRAM / DELPHI / VAEDIT / VAEDIT.TXT < prev   
Text File  |  1995-04-27  |  1KB  |  42 lines

  1. Real Range Validator Component for Delphi
  2.  
  3. The file VAEdit.pas is the source for a Delphi component
  4. that descends from the TEdit component.  It will accept
  5. input for a range of real numbers.
  6.  
  7. Example:  
  8.              -3.4 < x < 100
  9.  
  10. Properties:
  11.  
  12. GreaterNumber:  real number where input must be of greater value.
  13.  
  14. LessNumber:  real number where the input must be of lesser value.
  15.  
  16. GreaterOrEqual:  If true then the input value must be greater than
  17.                  or equal to GreaterNumber.  If false then input
  18.                  value must be greater than but NOT equal to 
  19.                  GreaterNumber.
  20.  
  21. LessOrEqual:  If true then the input value must be less than
  22.               or equal to LessNumber.  If false then input value must 
  23.               be less than but NOT equal to LessNumber.
  24.  
  25.  
  26. The following line of code will only allow these values
  27. to be input by the keyboard.
  28.  
  29. ValidateChar := ['0'..'9','.','-','+','e','E'];
  30.  
  31. The 'e' and 'E' are there for the ability to input using scientific
  32. notation.  Example:    3.21e2 = 321
  33.                             or
  34.                        3.21e-2 = 0.0321
  35.  
  36.  
  37. Hope this helps someone who needs this type of input for Delphi.
  38.  
  39.  
  40. Frank DeBlanc
  41. @70713,640
  42.