ListOfCommands = kvs.Get("commands") 'ListOfCommands is a process global variable
For Each item As CustomCommand In ListOfCommands
Spinner.Add(item.SpinnerValue)
Next
'later:
Sub Spinner1_ItemClick (Position As Int, Value As Object)
Dim command As CustomCommand = ListOfCommands.Get(Position)
Log(command)
End Sub