Restrictions on Variable Use

The following data types can only be declared as Local:

  • JavaObject

  • Interlink

    Note:

    Interlink objects can be declared as type Global in an Application Engine program.

  • TransformData

  • XmlNode

The following ApiObject data type objects can be declared as Global:

  • Session

  • PSMessages collection

  • PSMessage

  • All tree classes (trees, tree structures, nodes, levels, and so on)

  • Query classes

All other ApiObject data type objects (such as all the PortalRegistry classes) must be declared as Local.