QR Find column

4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next

version 2003


QR Find column (area; expression) Longint

ParameterTypeDescription
areaLongintReference of the area
expressionString | PointerColumn object
Function resultLongintNumber of the column

Description

The QR Find column command returns the number of the first column whose contents match the expression passed in parameter.

expression can either be a string or a pointer.

QR Find column returns –1 if nothing has been found.

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

Example

The following code retrieves the column number that holds the field [G.NQR Tests]Quarter and deletes that column:

   $NumColumn:=QR Find column (MyArea;->[G.NQR Tests]Quarter)

or:


   $NumColumn:=QR Find column (MyArea; "[G.NQR Tests]Quarter")

followed by:

   If ($NumColumn#-1)
      QR DELETE COLUMN (MyArea ; $NumColumn)
   End if

4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next