long GetColumnCount(long QueryID)
Description
This function returns the number of columns in the result set.
Parameters
Name | Description |
---|---|
QueryID | The ID of the query, as returned from InitializeQuery() or InitializeStaticQuery(). |
Return Value
If successful, the return value will be the number of columns in each row. If unsuccessful, the return value will be zero (0) or negative one (-1). If the return value is zero (0) or negative one (-1), you can call GetLastErrorString(), GetLastErrorType(), GetLastSQLCode(), GetLastSQLError(), or GetLastSQLState() to get additional error information.
Related Tasks