MSM-Workstation
Macros

Go back to the alphabetic list of macros
Go back to the first page of this tutorial

%%I

This macro is replaced by an object-reference to the current object (component, control, gadget, or window).

Examples

Assume that the current component is the "tree-view" control from Microsoft Visual Basic 5.0TM

zset tree=%%I
Copy a "handle" to the object into a local variable

set %%I.Indentation=20
Define a value for the property Indentation of this obect (this property defined the indentation step size in pixels)
(The macro can also be used in combination with properties of the object.)

zset tree.ImageList=^$W(%%CurrWin,"G","ImageList1")
Define a property value that, by itself, is a handle to another object
(the value that is obtained through this macro can be used as an object-reference itself).

ZSET Lev1=%%I.Nodes.Add(,1,,"Top-Level")
Define a local variable to hold a handle to another object that is "pointed to" by the tree object. (The class-function Add adds a "branch" to the "tree" and returns a handle to the object that represents the "branch".)

See also

xxx, xxx, xxx and xxx.