Communicates the output columns of an output stream to the parser.
Syntax
void FNC_TblOpSetOutputColDef(int streamno, FNC_TblOpColumnDef_t *coldefs);
Syntax Elements
- streamno
- the output stream number.
- coldefs
- the columns definition.
For details about the FNC_TblOpColumnDef_t structure, see Table Operator Data Structures.
Usage Notes
If no contract function is specified, the parser sets the output columns as indicated by the RETURNS clause.
The following are errors:
- Specifying the contract function and a column definition list.
- Invalid stream number.
- coldefs with any of the following:
- Invalid data types
- Invalid character set
- Invalid length for the number of columns in coldefs-> num_columns
Example Using FNC_TblOpSetOutputColDef
See C Table Operator for an example of how to use this function.