9. Generating Fields from Predefined Templates : How You Can Add a Generated Field to a Frame : The spin_control Field Template
 
Share this page                  
The spin_control Field Template
The spin_control field template is used to create a control consisting of an entry field and up and down buttons that increment or decrement the value displayed in the field. A spin control can contain integer, float, money, date, or varchar data. In the case of a varchar field, the individual values come from a ChoiceList that can be built automatically or that you can provide.
When you create a spin control, you can set its minimum and maximum values, the increment value to add or subtract when the up or down button is clicked, and a flag indicating whether you want the field to wrap between its minimum and maximum values when either limit is reached. For date fields, the increment can be specified in date units (such as months). For other data types, the increment should be a numeric value.
When you are designing the field, you can further customize the entry field by modifying the display format of the entry field based on the data type.