ColumnType (Property)

Applies To:

Column object

Description:

Returns a value that represents the type of Results or Table column. Possible column types are: Normal, Computed, Date and Grouped.

Action:

Read-only

Constants:

The BqColumnType constant group consists of these values:

Example:

This example shows how to determine the column type in a Results section:

for (j = 1 ; j < = ActiveDocument.Sections["Results"].Columns.Count ;j++)
{
          MyCol = ActiveDocument.Sections["Results"].Column[j].
          switch (MyCol.Type)
          {
                    case bqComputedColumn:
                    Alert ("The column named "+MyCol.Name + "is a Computed column")
                    Break
                    case bqDateColumn:
                    Alert ("The column named "+MyCol.Name + "is a Date column")
                    Break
                    case bqGroupedColumn:
                    Alert ("The column named "+MyCol.Name + " is a Grouped column")
                    Break
                    case bqStandardColumn:
                    Alert ("The column named "+MyCol.Name + "" is a Standard column”)
                    Break
           }

}