Type (Property)

Applies To:

Application object, Bullet object, (Live) BarChart object, (Live) BlockChart object, EventScript object,. EmbeddedBrowser object, (Live) FunnelChart object, HyperLink object, Join object, JoinsOptions object, (Live) LineChart object, (Live) PieChart object, PivotSection object ,(Live) RadarChart object, (CubeQuery) QuerySection object, QuerySection, ReportSection object, Section object, Speedometer object, Shape object, Slider object, Thermometer object, Toolbar object, Topic object, TrafficLight object

Description:

Returns the type value of these objects:

Action:

Read-only

Constants:

Application object —BqAppType

Section Objects —BqSectionType

Join—BqJoinType

Join Options

Toolbar —BqToolbars

Topic—BqTopicType

Shape—BqShapeType

JoinsOptions—BqDataModelJoinsOptions

EventScript object—BqScriptableEvents

Example:

This example shows how to use the Type (Property) to determine which properties apply to a specific object. In this example, checking the Type (Property) of the Section objects allows the script to process every query in a document.

var SecCount = ActiveDocument.Sections.Count
for (j = 1; j <= SecCount ; j++)
     {
      if (ActiveDocument.Sections[j].Type == bqQuery)
            ActiveDocument.Sections[j].Process()
     }