type data interval

Hi communauty

I've two columns in my table and the type must be interval of integer values for example : age must be interval between [2 and 6] years and wigth between [10 and 30 ] Kg , how can i define them when creating my table?

thank's

  • 0
  • 71
  • 1
  • 2

Answers

With %Library.Integer you can set MINVAL and MAXVAL parameters on your property:

Property Age As %Library.Integer(MAXVAL = 6, MINVAL = 2);
 

Make it a serial class with 2 numeric  properties and a calculated for the difference

Hi Robert , thank you for the answer , please , do you have any example to show for me ?