Assign the field values
To provide values for the columns (or fields) of a row structure, you pass information for the columns in column-value arrays or column-value null arrays.
These column-value arrays are similar to the column arrays in the
row descriptor (see Column arrays in the row descriptor ). They
have an element for each column in the row descriptor. The column-value
arrays are different from the column arrays in the row descriptor,
in the following ways:
- The column-value arrays describe the value for a column.
Column arrays describe the column data type.
- You must allocate and manage the column-value arrays.
The DataBlade® API does not provide accessor functions for these column-value arrays. For each column, your DataBlade® API module must declare, allocate, and assign values to these arrays.
All of the column-value arrays have zero-based indexes. The following
figure shows how the information at index position
1
of
these arrays holds the column-value information for the second column
of a row. The following sections provide additional information about each of the column-value arrays.