Using the Index as the Tag

This functionality is supported only if you are using the Classic Agent.

If you are certain that an object’s position in relation to its sibling objects of the same class will remain the same when the application is ported, you can use the index form for the tag.

Repeating the example from the preceding section, because the Exit/Quit menu item is the fifth menu item on the File menu (on all platforms), you can use the index form for the tag (#5) as shown here:

MenuItem Exit
   tag "#5"