QR INSERT COLUMN
QR INSERT COLUMN ( area ; colNumber ; object )
Parameter | Type | Description | |
---|---|---|---|
area | Integer | → | Reference of the area |
colNumber | Integer | → | Column number |
object | Field, Variable, Pointer | → | Object to be inserted in the column |
This command is not thread-safe, it cannot be used in preemptive code.
Description
The QR INSERT COLUMN command inserts or creates a column at the specified position. Columns located to the right of that position will be shifted accordingly.
position is the number of the column, established from left to right.
The default title for the column will be the value passed in object.
If you pass an invalid area number, the error -9850 will be generated.
Note: This command cannot be used with a cross-table report.
Example
The following statement inserts (or creates) a first column in a Quick Report area, inserts “Field1” as column title (default behavior) and populates the contents of the body with values from Field1.
QR INSERT COLUMN(MyArea;1;->[Table 1]Field1)