Difference between revisions of "PrF UG slots value type integer"
(Automated import of articles) |
|||
Line 4: | Line 4: | ||
{{PrF_UG_TOC_slots}}<div id='prf_ug'> | {{PrF_UG_TOC_slots}}<div id='prf_ug'> | ||
− | An <b>Integer</b> slot holds an integer number value. (Recall that integer numbers are whole numbers that are positive, | + | An <b>Integer</b> slot holds an integer number value. |
− | negative, | + | (Recall that integer numbers are whole numbers |
− | or zero; | + | that are positive, negative, or zero; they cannot include a decimal point. |
− | they cannot include a decimal point. | ||
Values of type <b>Integer</b> are stored programmatically on your system as integer values.) | Values of type <b>Integer</b> are stored programmatically on your system as integer values.) | ||
Line 14: | Line 13: | ||
<ol class='a'> | <ol class='a'> | ||
<li><p> | <li><p> | ||
− | [[PrF_UG_slots_create_slot|Create]] | + | [[PrF_UG_slots_create_slot|Create]] the slot, |
− | + | or [[PrF_UG_slots_editing_a_slot|view]] | |
− | or | + | the [[PrF_UG_slots_slot_editor|Slot Editor]] for an existing slot. |
− | |||
− | the | ||
− | |||
− | |||
</p> | </p> | ||
<li><p> | <li><p> | ||
− | Select <b>Integer</b> from the | + | Select <b>Integer</b> |
− | + | from the [[PrF_UG_slots_value_type_menu|Value Type menu]]. | |
</p> | </p> | ||
Line 41: | Line 36: | ||
When an instance is created for a class with this slot, | When an instance is created for a class with this slot, | ||
the value of the slot must be greater than or equal to the minimum. | the value of the slot must be greater than or equal to the minimum. | ||
− | For example, | + | For example, a minimum of zero means instances cannot have negative values. |
− | |||
</p> | </p> | ||
Line 52: | Line 46: | ||
<li><p> | <li><p> | ||
− | Together, | + | Together, <b>Minimum</b> and <b>Maximum</b> can be used |
− | + | to define an allowable range. | |
</p> | </p> | ||
</ul> | </ul> | ||
− | When present, | + | When present, the <b>Minimum</b> and/or <b>Maximum</b> values |
− | the <b>Minimum</b> and/or <b>Maximum</b> values are displayed in the last column of the | + | are displayed in the last column |
− | [[PrF_UG_classes_template_slot_pane|Template Slots pane]]. | + | of the [[PrF_UG_classes_template_slot_pane|Template Slots pane]]. |
+ | |||
</div> | </div> |
Revision as of 11:10, October 17, 2008
The Integer Value Type
An Integer slot holds an integer number value. (Recall that integer numbers are whole numbers that are positive, negative, or zero; they cannot include a decimal point. Values of type Integer are stored programmatically on your system as integer values.)
To set the value type of a slot to Integer:
Create the slot, or view the Slot Editor for an existing slot.
Select Integer from the Value Type menu.
Fill in the other facets of the slot as desired.
For slots of type Integer, you can enter a Minimum and/or Maximum value.
Minimum allows you to specify a minimum value for your slot. When an instance is created for a class with this slot, the value of the slot must be greater than or equal to the minimum. For example, a minimum of zero means instances cannot have negative values.
Maximum allows you to specify a maximum value for your slot. When an instance is created for a class with this slot, the value of the slot must be less than or equal to the maximum.
Together, Minimum and Maximum can be used to define an allowable range.
When present, the Minimum and/or Maximum values are displayed in the last column of the Template Slots pane.