Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- dBsee 4.6 - The Library - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

   A Spin button is used when the associated field can assume values lying in
   a determined range, from a minimum to a maximum value using a pre-fixed
   step. For example, it can be used to select a value that will represent a
   cost to be expressed in thousands of dollars or to choos the value of a
   month comprised between January 1990 and December 1999.

   Possible values can be defined by specifying the minimum value, the
   maximum value and the step, or the values can be listed in an array.

   The Spin button, as described by the examples above, allows to insert or
   modify a data element knowing that the inserted value will be correct.

Example:1

   Let's suppose that in the header of an invoice a discount is to be given
   (field DiscInv of the file InvHd). The project details indicate
   that the pre-fixed discount is 10% and that it cannot be less than 5% and
   greater than 60%. The increment step is 5%. A Spin button is the right
   element for implementing this behaviour. To create a Spin button with
   these functionalities, it is necessary to set the parameters in the
   properties environment activated with the Options button, present in
   the Definition Frame of the Spin button. These parameters are:

     
     Origin type..............: Field
     
     Spin button data origin..: DiscInv
     
     Default value............: 10
     
     Spin button data type....: Numeric interval
     
     Array of values..........:
     
     Minimum value............: 5
     
     Maximum value............: 60
     
     Step.....................: 5

Example:2

   In the invoice considered in the preceding example, the descriptive state
   is to be indicated (field InvStateWB in the file InvHD). This
   state indicates if the invoice's articles has been shipped or not and if
   it has be partially or entirely shipped. In this case, a Spin button is
   defined and associated to a static array that contains the possible states
   that the invoice can assume. In the properties environment, the following
   parameters are to be set:

     
     Origin type.............: Field
     
     Spin button data origin.: InvState
     
     Default value...........: "Not shipped"
     
     Spin button data type...: List of values
                               (static array)
     
     Array of values.........: {"Not shipped",
                               "Partially shipped",
                               "Completely Shipped"}

Example:3

   A field SpinD (date type) can only be evaluated with the today's,
   yesterday's and tomorrow's date. In the properties environment, the
   following parameters are to be set:

     
     Origin type.............: Field
     
     Spin button data origin.: SpinD
     
     Default value...........: DATE()
     
     Spin button data type...: List of values
                               (static array)
     
     Array of values.........: {DATE()-1,
                               DATE(),
                               DATE()+1}
     

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson