The help suggests that:
items$() Optional dynamic string array containing the initial items to be displayed in the combo box. If the array is omitted, the combo box will be empty upon creation.
So here's my code with the array but I can't get anything to appear in the combobox.
What am I doing wrong ?
items$() Optional dynamic string array containing the initial items to be displayed in the combo box. If the array is omitted, the combo box will be empty upon creation.
So here's my code with the array but I can't get anything to appear in the combobox.
What am I doing wrong ?
Code:
#COMPILE EXE #INCLUDE "win32api.inc" GLOBAL item$() FUNCTION PBMAIN() REDIM PRESERVE item$(3) item$(0) = "Item Zero" item$(1) = "Item One" item$(2) = "Item Two" item$(3) = "Item Three" CALL DialogOne END FUNCTION SUB DialogOne #REGISTER NONE DIALOG NEW 0, "ComboBox Test", , , 186, 44, &Hc80800& OR %WS_MINIMIZEBOX, 0 TO D1& CONTROL ADD LABEL, D1&, 10, "What am I doing wrong ?" , 51, 5, 83, 9, 0 CONTROL ADD COMBOBOX, D1&, 20, item$() , 47, 18, 91, 13, 0 DIALOG SHOW MODAL D1& MSGBOX item$(3) END SUB
Comment