//-------------------------------------------------------------------------------------
if (Temp1.Contains(_T("ODBC-")))
{
- Temp1 = Temp1.Mid(5,wxSTRING_MAXLEN);
+ Temp1 = Temp1.Mid(5);
for (i=0;i<pDoc->i_DSN;i++)
{
if (Temp1 == (pDoc->p_DSN+i)->Dsn)