VariableCardinalityDefinition object

A class that provides information about the cardinality of a variable. It reports whether the associated variable is a single instance or an array. If it is an array, you can get information about the dimensions. VariableCardinalityDefinition is used in the VariableDefinition object. It has no events.

Properties

VariableCardinality Definition property

Datatype

Description

ArrayDefinition[ ]

ArrayBounds

When the associated variable's Cardinality is BoundedArray!, an array with an ArrayBounds object for each dimension in the array being described.

When Cardinality is UnboundedArray!, ArrayDefinition has a single ArrayBounds object with LowerBound and UpperBound properties both set to 0. The extent of the array is not part of the class definition.

Not valid when Cardinality is ScalarType!

Cardinality

VariableCardinalityType

The cardinality of the associated variable. Values are:

ScalarType!

UnboundedArray!

BoundedArray!

ClassDefinition

PowerObject

An object of type PowerObject containing information about the class definition of the object or control.


Functions

VariableCardinalityDefinition function

Datatype returned

Description

ClassName in PowerScript Reference

String

Returns the name assigned to the object

GetContextService in PowerScript Reference

Integer

Creates a reference to a context-specific instance of the specified service

GetParent in PowerScript Reference

PowerObject

Returns a reference to the name of the parent object

TypeOf in PowerScript Reference

Object

Returns the type of the object