Question Soufiane Amroun · Nov 14, 2017

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

Comments

Robert Cemper · Nov 14, 2017

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

0
Soufiane Amroun  Nov 14, 2017 to Robert Cemper

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

0
John Murray · Nov 14, 2017

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

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

0