|
Because some columns are integers, I format them as strings for easy display.
while (! recordset.IsEOF ())
{
strTemp.Format ("% d", recordset.m_column2);
strTemp1.Format ("% f", recordset.m_column3);
strTemp2.Format ("% f", recordset.m_column4);
strTemp3.Format ("% f", recordset.m_column5);
strTemp4.Format ("% f", recordset.m_column6);
strTemp5.Format ("% f", recordset.m_column7);
ctl-> InsertItem (i, recordset.m_column1);
ctl-> SetItemText (i, 1, strTemp);
ctl-> SetItemText (i, 2, strTemp1);
ctl-> SetItemText (i, 3, strTemp2);
ctl-> SetItemText (i, 4, strTemp3);
ctl-> SetItemText (i, 5, strTemp4);
ctl-> SetItemText (i, 6, strTemp5);
ctl-> SetItemText (i, 7, recordset.m_column8);
recordset.MoveNext ();
} |
|