Calling convention: CIP_JSON_GetDBColByIndex(JSONObjectPointer: NativeInt, ColIndex: Integer): NativeInt
Description: Returns the column metadata object at ColIndex from a JSON dataset created by CIP_JSON_SQL. The returned child pointer must not be freed separately.
Parameters:
JSONObjectPointer = Valid pointer to a JSON dataset.
ColIndex = Zero-based column index.
Returns: NativeInt: borrowed pointer to the column metadata object. A missing index/path or invalid nonzero pointer raises an exception; NULL or 0 returns without assigning a result.
Availability: Default.
Example:
try
JSONSQLObj := CIP_JSON_SQL("", "SELECT * FROM OBJECTS");
JSONColObject := CIP_JSON_GetDBColByIndex(JSONSQLObj, 0);
CIP_AddScreenLog(CIP_JSON_GetValue(JSONColObject, "Name", "STRING"));
finally
CIP_JSON_FreeObject(JSONSQLObj);
end;