Conditions Object

The Conditions object is a list of Condition objects. These objects are normally managed directly by the dialogs. Conditions objects are used by all controls that manage a variable list of options, such as GetDigits, Remote and DataSwitch controls.

Every condition object contains a condition name and a value and represents one node on the control. While the use of the name and value items is dependent on the control, the name is generally the printed name on the control node and the value is used for data matching.

The Conditions Object should be initialized using dialogs. This object is normally created by the dialogs automatically.

Conditions Object Properties

NumConditions

Sets or returns the number of conditions in this object.

Name

Sets or gets the name of one condition in the string. The name is normally the text printed in the output node corresponding to that condition.

Data

Sets or gets the data of one condition in the string. The use of the data string is control-specific.

UseVB

Use just as the Use VB Condition flag in the Condition dialog.

Condition dialog

Used by several controls and appears with slight variations in each control. The dialog as used by the DataSwitch control is shown below.

Let VB code decide...

Check this box if the pattern matching capability in a control does not meet your requirements.

For every node that has this button checked, the DataSwitch control generates a Condition event in the control, allowing your code to decide if the digits meet acceptance criteria.

Field value

Sets the value required for the field for this control.

Condition name

The name of the condition that is drawn in the node.