To specify
|
Syntax
|
---|---|
Any whole number
|
Field long;
|
|
Example
Quantity long;
|
|
Any whole number between -2,147,483,648 and 2,147,483,647 is valid.
|
A range of values
|
Field long [ n1 .. n2 ];
|
|
Example
Visits long [1..99];
|
|
All whole numbers between 1 and 99 inclusive are valid.
|
A minimum to undefined max.
|
Field long [ n1 .. ];
|
|
Example
People long [1..];
|
|
All whole numbers greater than 0 are valid.
|
From undefined min. to max.
|
Field long [ .. n1 ];
|
|
Example
Cars long [..10];
|
|
All whole numbers less than 11 are valid.
|
Single values
(Not supported in Data Model 2.8.)
|
Field long [ n1 , n2 , n3 , n4 ...];
|
|
Example: Size long [100, 200, 500];
|
|
Values 100, 200, and 500 are valid.
|
Several different ranges
|
Field long [ n1 .. n2 , n3 .. n4 , n5 .. n6 ...];
|
|
Example:
Rate1 long [24..56, 100..1000];
|
|
All whole numbers between 24 and 56 inclusive and between 100 and 1000 inclusive are valid.
|
Exclusive values
|
Field long [ ^ n1 .. n2 ];
|
|
Example:
Grade long [1..10, ^5..7];
|
|
All whole numbers between 1 and 10 inclusive, except the whole numbers between 5 and 7 inclusive. (In other words, 1, 2, 3, 4, 8, 9, 10.)
|
Stepped values
|
Field long [ n1 .. n2 step n3 ];
|
|
Example:
DressSize "Dress size" long [6..30 step 2];
|
|
All whole numbers between 6 and 30 inclusive in steps of 2. (In other words, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30.)
|