Example #1
0
 bool Statement::ColumnBool(int col) const 
 {
   return !!ColumnInt(col);
 }
Example #2
0
int ConfDb::GetWindowHeight()
{
    FORMAT_SQL(SQL_QUERY_CONF_VALUE, KEY_WND_HEIGHT);
    Prepare();
    return (NextStep() == StepRow) ? ColumnInt(0) : 0;
}
Example #3
0
 int Query::SingleInt() {
     return Next() ? ColumnInt(0) : 0;
 }
Example #4
0
int ConfDb::GetWindowWidth()
{
    FORMAT_SQL(SQL_QUERY_CONF_VALUE, KEY_WND_WIDTH);
    Prepare();
    return (NextStep() == StepRow) ? ColumnInt(0) : 0;
}