beautypg.com

Rockwell Automation 9301 Series RSView32 Users Guide User Manual

Page 448

background image

Animating graphic objects

12–41

With the Invoke command you can:

call an object’s method

assign the value returned by a method to a tag

set an object’s property to a tag value or a constant

set a tag to the value of an object property

To call a method on an object:

On the command line or anywhere else that accepts a command, type
the following command:

Invoke file.object.method(parameter1, parameter2, . . .)

file

The name of the graphic display that contains the
ActiveX object.

me

can be used instead of file. At runtime it resolves to
the graphic file that currently has focus.

object

The name of the ActiveX object as specified
in the Object Name dialog box.

method

The name of a function or sub–routine in the
ActiveX object. The method is initiated by an
external event such as the Invoke command.

parameter

The tag name or constant that the method will use.

The easiest way to specify the file.object.method(parameter1,
parameter2, . . .)
string for the Invoke command is to use the Command
Wizard.