Shoutbox

ComboBox and item data - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: ComboBox and item data (/showthread.php?tid=79294)

ComboBox and item data by MeEtc on 11-23-2007 at 03:50 AM

code:
for(var i=0; i<listbackground.length; i++){
   cwnd_Background.Combo_AddItem('lstBgURL', listbackground[i], parseInt(numbackground[i]));
   Debug.Trace('parse= '+parseInt(numbackground[i]));
   Debug.Trace('data=  '+cwnd_Background.Combo_GetItemData('lstBgURL', i));
}
makes the following output:
code:
parse= 2
data=  0
parse= 3
data=  0
parse= 4
data=  0
In theory, each parse and data pair should be equal. Somethings wrong with the Combo_AddItem part I'm guessing?
RE: ComboBox and item data by Mnjul on 11-23-2007 at 07:07 AM

Mnjul's reply to Combo_GetItemData help [SOLVED]