git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44497
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
//-------------------------------------------------------------------------------------
if (Temp1.Contains(_T("ODBC-")))
{
//-------------------------------------------------------------------------------------
if (Temp1.Contains(_T("ODBC-")))
{
- Temp1 = Temp1.Mid(5,wxSTRING_MAXLEN);
for (i=0;i<pDoc->i_DSN;i++)
{
if (Temp1 == (pDoc->p_DSN+i)->Dsn)
for (i=0;i<pDoc->i_DSN;i++)
{
if (Temp1 == (pDoc->p_DSN+i)->Dsn)
//----------------------------------------------------------------------------------------
//----------------------------------------------------------------------------------------
// Purpose: Dialog mit Variable Gestaltung durch DlgUser.wxr
// Author: Mark Johnson
// Modified by: 19991105.mj10777
// Purpose: Dialog mit Variable Gestaltung durch DlgUser.wxr
// Author: Mark Johnson
// Modified by: 19991105.mj10777
//----------------------------------------------------------------------------------------
BEGIN_EVENT_TABLE(DlgUser, wxDialog)
EVT_BUTTON(wxID_OK, DlgUser::OnOk)
//----------------------------------------------------------------------------------------
BEGIN_EVENT_TABLE(DlgUser, wxDialog)
EVT_BUTTON(wxID_OK, DlgUser::OnOk)
- EVT_BUTTON(wxID_CANCEL, DlgUser::OnCancel)
END_EVENT_TABLE()
//----------------------------------------------------------------------------------------
void DlgUser::OnOk(wxCommandEvent& WXUNUSED(event) )
{
END_EVENT_TABLE()
//----------------------------------------------------------------------------------------
void DlgUser::OnOk(wxCommandEvent& WXUNUSED(event) )
{
s_User = m_UserName->GetValue();
s_Password = m_Password->GetValue();
EndModal(wxID_OK);
}
s_User = m_UserName->GetValue();
s_Password = m_Password->GetValue();
EndModal(wxID_OK);
}
-//----------------------------------------------------------------------------------------
-//void DlgUser::OnCancel(wxCommandEvent& WXUNUSED(event) )
-// {
-// canceled = true;
-// EndModal(wxID_CANCEL);
-// }
-//----------------------------------------------------------------------------------------
-
//--------------------------------------------------------------------------------------
if (Temp1.Contains(_T("ODBC-")))
{
//--------------------------------------------------------------------------------------
if (Temp1.Contains(_T("ODBC-")))
{
- Temp1 = Temp1.Mid(5,wxSTRING_MAXLEN);
for (i=0;i<pDoc->i_DSN;i++)
{
if (Temp1 == (pDoc->p_DSN+i)->Dsn)
for (i=0;i<pDoc->i_DSN;i++)
{
if (Temp1 == (pDoc->p_DSN+i)->Dsn)
//--------------------------------------------------------------------------------------
if (Temp1.Contains(_T("ODBC-")))
{
//--------------------------------------------------------------------------------------
if (Temp1.Contains(_T("ODBC-")))
{
- Temp1 = Temp1.Mid(5,wxSTRING_MAXLEN);
for (i=0;i<pDoc->i_DSN;i++)
{
if (Temp1 == (pDoc->p_DSN+i)->Dsn)
for (i=0;i<pDoc->i_DSN;i++)
{
if (Temp1 == (pDoc->p_DSN+i)->Dsn)