IF … Then

Specifies that the Attribute or Variable must be tested in some way, and if it passes the criteria then a secondary action is to be executed.

Some conditional tests also enable specific attributes to be exposed for the object.

If the process group is generic, such as ‘Static Screen Objects’ then the 'IF Object Type is' keyword can be useful. By specifying an object type to select, the secondary action can manipulate any of its attributes, not only the generic ones.

For example:

IF Object Type is

Icon

Then Set Attribute

Foreground Color

To Value

Black

When processing ActiveX objects but without a control named in the tool’s process restrictions, the objects are processed generically. It is possible though to check for a specific control as the primary action in order to expose those attributes that apply to it. This would be defined as follows:

IF Attribute

ActiveX Control Id of this Dynamic Object

Is Equal To

{control name}

Then Set Attribute

{attribute name}

The control name allows the selection of all known controls, i.e. those which have been saved from the ActiveX Gallery or have had definitions imported. In the secondary action, the attribute names available for selection will also include those applicable to this control and not just the generic attributes.

If the secondary action is to call a sub list rather than to manipulate attributes, then the control name will automatically be passed through to it and used in the 'processes' restrictions.

Comment on this topic

Topic ID: 500058