Calling convention: CIP_JSON_GetDBColCount(JSONObjectPointer: NativeInt): Integer
Description: Returns the number of columns in a JSON dataset created by CIP_JSON_SQL.
Parameters:
JSONObjectPointer = Valid pointer to a JSON dataset.
Returns: Integer: column count; NULL if the column-list path is absent. A non-array column list or invalid nonzero pointer raises an exception.
Availability: Default.
Example:
try
JSONSQLObj := CIP_JSON_SQL("", "SELECT * FROM OBJECTS");
Result := CIP_JSON_GetDBColCount(JSONSQLObj);
finally
CIP_JSON_FreeObject(JSONSQLObj);
end;