git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6368
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Contact->whereStr += Contact->qryWhereStr;
}
// Close the expression with a right paren
Contact->whereStr += Contact->qryWhereStr;
}
// Close the expression with a right paren
- // Contact->whereStr += ")";
+ Contact->whereStr += ")";
// Requery the table
Contact->where = (char*) (const char*) Contact->whereStr;
if (!Contact->Query())
// Requery the table
Contact->where = (char*) (const char*) Contact->whereStr;
if (!Contact->Query())
} // CqueryDlg() constructor
} // CqueryDlg() constructor
+CqueryDlg::~CqueryDlg()
+{
+} // CqueryDlg::~CqueryDlg() destructor
+
+
void CqueryDlg::OnButton( wxCommandEvent &event )
{
wxWindow *win = (wxWindow*) event.GetEventObject();
void CqueryDlg::OnButton( wxCommandEvent &event )
{
wxWindow *win = (wxWindow*) event.GetEventObject();
while (wxIsBusy())
wxEndBusyCursor();
while (wxIsBusy())
wxEndBusyCursor();
this->Destroy();
} // CqueryDlg::OnCloseWindow()
this->Destroy();
} // CqueryDlg::OnCloseWindow()
}
// Count() with WHERE clause
}
// Count() with WHERE clause
- dbTable->where = (char*) (const char*) pQuerySqlWhereMtxt->GetValue();
+ wxString whereStr;
+
+ whereStr = pQuerySqlWhereMtxt->GetValue();
+ dbTable->where = (char *)whereStr.GetData();
ULONG whereCnt = dbTable->Count();
// Count() of all records in the table
ULONG whereCnt = dbTable->Count();
// Count() of all records in the table
wxTextCtrl *pFocusTxt;
CqueryDlg(wxWindow *parent, wxDB *pDb, char *tblName[], char *pWhereArg);
wxTextCtrl *pFocusTxt;
CqueryDlg(wxWindow *parent, wxDB *pDb, char *tblName[], char *pWhereArg);
void OnButton( wxCommandEvent &event );
void OnCommand(wxWindow& win, wxCommandEvent& event);
void OnButton( wxCommandEvent &event );
void OnCommand(wxWindow& win, wxCommandEvent& event);