Listbox control
-
CString array[2400];
CListBox listbox;
for (int i = 0; i < 2400; i++) {
listbox.AddString(array[i]);
}
Software Zen:
delete this;
-
CString array[2400];
CListBox listbox;
for (int i = 0; i < 2400; i++) {
listbox.AddString(array[i]);
}
Software Zen:
delete this;
Ya thank you very much for ur reply, whatever you have written is correct and i was owrking int he same way, but i was encountering an error while using with two dimensional arrays.How could i use for two dimensional arrays? CString average[100][100]; CListBox m_stravevalues; for(i=0;i<60;i++) for(j=0;j<40;j++) { m_stravevalues.AddString(average[i][j]); } Is this correct???
-
Ya thank you very much for ur reply, whatever you have written is correct and i was owrking int he same way, but i was encountering an error while using with two dimensional arrays.How could i use for two dimensional arrays? CString average[100][100]; CListBox m_stravevalues; for(i=0;i<60;i++) for(j=0;j<40;j++) { m_stravevalues.AddString(average[i][j]); } Is this correct???
Not Correct, A Listbox is One Dimensional, and cannot display 2 Dimensions. Maybe you're looking for a Multi Colum listbox?? LateNightsInNewry
-
Not Correct, A Listbox is One Dimensional, and cannot display 2 Dimensions. Maybe you're looking for a Multi Colum listbox?? LateNightsInNewry