C
ckkwan
The code below yield different results by just moving the _T("Phone")
to second line.
struct { TCHAR* ColName; CString& Value; } Columns[] =
{
{_T("Name"), m_Name}, {_T("Add1"), m_Add1},
{_T("Add2"), m_Add2}, {_T("Add3"), m_Add3},
{_T("Postcode"), m_Postcode}, {_T("State"), m_State},
{_T("Country"), m_Country}, {_T("Phone"), m_Phone},
{_T("MobilePhone"), m_MobilePhone}, {_T("Fax"), m_Fax},
{_T("IC"), m_IC}
};
Example:
struct { TCHAR* ColName; CString& Value; } Columns[] =
{
{_T("Name"), m_Name}, {_T("Add1"), m_Add1},
{_T("Add2"), m_Add2}, {_T("Add3"), m_Add3},
{_T("Postcode"), m_Postcode}, {_T("State"), m_State},
{_T("Country"), m_Country},
{_T("Phone"), m_Phone},
{_T("MobilePhone"), m_MobilePhone}, {_T("Fax"), m_Fax},
{_T("IC"), m_IC}
};
Regards
Kwna.
to second line.
struct { TCHAR* ColName; CString& Value; } Columns[] =
{
{_T("Name"), m_Name}, {_T("Add1"), m_Add1},
{_T("Add2"), m_Add2}, {_T("Add3"), m_Add3},
{_T("Postcode"), m_Postcode}, {_T("State"), m_State},
{_T("Country"), m_Country}, {_T("Phone"), m_Phone},
{_T("MobilePhone"), m_MobilePhone}, {_T("Fax"), m_Fax},
{_T("IC"), m_IC}
};
Example:
struct { TCHAR* ColName; CString& Value; } Columns[] =
{
{_T("Name"), m_Name}, {_T("Add1"), m_Add1},
{_T("Add2"), m_Add2}, {_T("Add3"), m_Add3},
{_T("Postcode"), m_Postcode}, {_T("State"), m_State},
{_T("Country"), m_Country},
{_T("Phone"), m_Phone},
{_T("MobilePhone"), m_MobilePhone}, {_T("Fax"), m_Fax},
{_T("IC"), m_IC}
};
Regards
Kwna.