sqldata_w/mainwindow.cpp
// Get index of the table in the list of all tables
Get index of the table in the list of all tables
Get index of the table in the list of all tables
int MainWindow::GetTableIndex(const char *name)
{
    if(name == NULL)
        return -1;
    int k = 0;
    for(std::list<std::string>::iterator i = _avail_tables.begin(); i != _avail_tables.end(); i++, k++)
    {
        if(_stricmp((*i).c_str(), name) == 0)
            return k;
    }
    return -1;
}
int MainWindow :: GetTableIndex ( const char * name ) { if ( name == NULL ) return -1 ; int k = 0 ; for ( std :: list < std :: string > :: iterator i = _avail_tables . begin ( ) ; i != _avail_tables . end ( ) ; i ++ , k ++ ) { if ( _stricmp ( ( * i ) . c_str ( ) , name ) == 0 ) return k ; } return -1 ; }
Get index of the table in the list of all tables
Get index of the table in the list of all tables