QR Count columns

4D - Documentation   Français   English   German   Spanish   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next

version 2003


QR Count columns (area) Longint

ParameterTypeDescription
areaLongintReference of the area
Function resultLongintNumber of columns in area

Description

The QR Count columns command returns the number of columns present in the Quick Report area.

If you pass an invalid area number, the error -9850 will be generated.

Example

The following code retrieves the column count and inserts a column to the right of the rightmost existing column:

   $ColNb:=QR Count columns(MyArea)
   QR INSERT COLUMN(MyArea;$ColNb+1;->[Table 1]Field2)

See Also

QR DELETE COLUMN, QR INSERT COLUMN.


4D - Documentation   Français   English   German   Spanish   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next