Language Reference Guide : C. Generated User Classes : Spin_Object User Class : Setup Method
 
Share this page                  
Setup Method
The Setup method defines the data type, initial value, increment, minimum, and maximum values for the spin control.
This method has the following syntax:
integer = SpinObject.Setup(fld = EntryField,
          type = varchar(65) default null,
          wrap = smallint not null default
                    FALSE,
          curval = varchar(256) not null,
          increment = varchar(256) not null,
          maximum = varchar(256) not null,
          minimum = varchar(256) not null
          [listval = ChoiceList])
This method has the following parameters:
fld
Specifies an instance of the EntryField class
type
Specifies one of the following strings:
'date'
'float'
'integer'
'money'
'varchar'
wrap
Represents the wrap-around flag
curval
Represents the variable in the entry field
increment
Represents the increment value
maximum
Specifies the maximum value in the spin control
minimum
Specifies the minimum value in the spin control
listval
Is only used when the type parameter is of type varchar