OK I'm using the code below to add statuses to a combo box, and I'm using the ItemData parameter to store the Status codes.
code:
OptsWnd.Combo_AddItem("CmbStatus", "Busy", 4);
OptsWnd.Combo_AddItem("CmbStatus", "Be Right Back",5);
OptsWnd.Combo_AddItem("CmbStatus", "Away",7);
OptsWnd.Combo_AddItem("CmbStatus", "In a Call",8);
OptsWnd.Combo_AddItem("CmbStatus", "Out To Lunch",9);
for (var i = 0; i <= OptsWnd.Combo_GetCount("CmbStatus"); i++){
Debug.trace(OptsWnd.Combo_GetItemData("CmbStatus", i));
}
^^ But when I use GetItemData on the items in that for loop, it ouputs 0 for all of them. I don't know whats wrong, as the combo box IS created in my window, and it IS filled.
Can anyone offer any suggestions?