X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a4054ad1cfd23565d59c2e14bd59201b37606f53..830efc9b0cb87eae22d4435af7858175017522ab:/samples/db/listdb.cpp?ds=sidebyside diff --git a/samples/db/listdb.cpp b/samples/db/listdb.cpp index d4d197a160..ccf40bebb6 100644 --- a/samples/db/listdb.cpp +++ b/samples/db/listdb.cpp @@ -190,7 +190,7 @@ ClookUpDlg::ClookUpDlg(wxWindow *parent, wxChar *windowTitle, wxChar *tableName, widgetPtrsSet = TRUE; // Query the lookup table and display the result set - lookup = new Clookup(tableName, colName, pDb, defDir); + lookup = new Clookup(tableName, colName, pDb, defDir); if (!lookup) { wxMessageBox(wxT("Error allocating memory for 'Clookup'object."),wxT("Error...")); @@ -224,7 +224,7 @@ ClookUpDlg::ClookUpDlg(wxWindow *parent, wxChar *windowTitle, wxChar *tableName, pLookUpSelectList->SetSelection(0); // Make the OK activate by pressing Enter - if (pLookUpSelectList->Number()) + if (pLookUpSelectList->GetCount()) pLookUpOkBtn->SetDefault(); else { @@ -295,7 +295,7 @@ ClookUpDlg::ClookUpDlg(wxWindow *parent, wxChar *windowTitle, wxChar *tableName, widgetPtrsSet = TRUE; // Query the lookup table and display the result set - lookup2 = new Clookup2(tableName, dispCol1, dispCol2, pDb, defDir); + lookup2 = new Clookup2(tableName, dispCol1, dispCol2, pDb, defDir); if (!lookup2) { wxMessageBox(wxT("Error allocating memory for 'Clookup2' object."),wxT("Error...")); @@ -384,7 +384,7 @@ ClookUpDlg::ClookUpDlg(wxWindow *parent, wxChar *windowTitle, wxChar *tableName, pLookUpSelectList->SetSelection(0); // Make the OK activate by pressing Enter - if (pLookUpSelectList->Number()) + if (pLookUpSelectList->GetCount()) pLookUpOkBtn->SetDefault(); else {