SB 2.00 b2 Return value of AddGadgetItem
Posted: Wed Nov 02, 2016 2:36 pm
I'm not sure that's a bug because of the doc mentionning PB and not SB but :
It always return undefined:Param Position : #PB_Any can be used, in which case the return-value will be the new number assigned by PB.
Code: Select all
OpenWindow(0, 0, 0, 200, 100, "")
combo = ComboBoxGadget(#PB_Any, 10, 10, 180, 20)
Debug AddGadgetItem(combo, 0, "t1")
Debug AddGadgetItem(combo, 1, "t2")
Debug AddGadgetItem(combo, -1, "t3")
Debug AddGadgetItem(combo, #PB_Any, "t4")