(Result example: 1, 2, 3, 4, 5, ...... 1000)
Code: Select all
If OpenWindow(0, 100, 130, 220, 100, "ComboBox Sorted", #PB_Window_SystemMenu)
cb.l = ComboBoxGadget(1, 10, 10, 200, 20, #CBS_SORT)
For dlInc = 1 To 100
SendMessage_(cb, #CB_ADDSTRING, 0, Str(Random(500, 1)))
Next
Repeat : Until WaitWindowEvent()=#PB_Event_CloseWindow
EndIf