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())
} // CqueryDlg() constructor
+CqueryDlg::~CqueryDlg()
+{
+} // CqueryDlg::~CqueryDlg() destructor
+
+
void CqueryDlg::OnButton( wxCommandEvent &event )
{
wxWindow *win = (wxWindow*) event.GetEventObject();
while (wxIsBusy())
wxEndBusyCursor();
+ Show(FALSE);
this->Destroy();
} // CqueryDlg::OnCloseWindow()
}
// 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