Skip to content

Spin_Value - dbSpinFormDS

Called anytime the spin button needs to synchronize its value with the form value

Type: Property
Access: Read/Write
Data Type: Integer
Parameters: None

Syntax

Property Integer Spin_Value
Access Type Syntax
Read Access: Get Spin_Value to IntegerVariable
Write Access: Set Spin_Value to IntegerVariable/Value

Description

Spin_Value is called anytime the spin button needs to synchronize its value with the form value. This can be augmented to convert the form's value into some other numeric spin value. You will usually need to augment the Spin_value function as well.

Procedure Set Spin_Value integer iItem
    If (iItem=0) Set Value 0 to "Open"
    Else If (iItem=1) Set Value 0 to "Closed"
    Else If (iItem=2) Set Value 0 to "Canceled"
End_Procedure