I want to add integers in combobox list but couldn't do ?
Will anyone help me out ?
Rakesh
RHardaha
Printable View
I want to add integers in combobox list but couldn't do ?
Will anyone help me out ?
Rakesh
RHardaha
Try formating the integers into a CString with ::Format:
CString t_cTemp;
t_cTemp.Format("%d",myint);
m_MyCombo.AddString(t_cTemp);
Steven M. McNeese
[email protected]
The first response of steeve is good if you want to add an integer as string in a combobox.
But if you want to link an integer to each item of your combobox use GetItemData and SetItemData methods of the CComboBox class.
I hope this could help.