'Globals
Dim MySpinner As Spinner 'Created in designer
Dim MyValue As Int
'Activity_Create
MySpinner.AddAll(Array As Int(0,10,20,30,40,60,80,99))
Sub MySpinner_Itemclick(Position As Int, Value As Object)
MyValue=Value
If MyValue=99 Then MyValue=ManualInput
Msgbox(100*MyValue,"result")
End Sub
Sub ManualInput As Int
Dim MyNumber As NumberDialog 'need dialog lib
Dim ret As Int
ret=MyNumber.Show("Please enter a number not in list","ok","Cancel","",Null)
If ret=-1 Then
Return MyNumber.Number
End If
End Sub