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