Technokrat
Programmer
I have the following:
-----------------------------
The existing cpp initiated the struct as a constant something like:
---------------------------------
Requirements have changed, and I need select qry2 to be dynamic. If the form is opened as create new one query is run, if the form is opened as change existing a different query is run.
How do I keep my struct in place, and reference "select qry2" to change it on the fly?
Code:
// a struct for a combo box
struct CboDef
{
LPCTSTR pszQryName;
LPCTSTR pszFldDesc;
LPCTSTR pszFldID;
}
-----------------------------
The existing cpp initiated the struct as a constant something like:
Code:
const CboDef m_CboDef[] =
{
_T("select qry1"),
_T("Desc1"),
_T("ID1"),
_T("select qry2"),
_T("Desc2"),
_T("ID2"),
}
---------------------------------
Requirements have changed, and I need select qry2 to be dynamic. If the form is opened as create new one query is run, if the form is opened as change existing a different query is run.
How do I keep my struct in place, and reference "select qry2" to change it on the fly?