Context

<< Click to Display Table of Contents >>

 

Context

Context(ContextName)

Returns an object implementing the context indicated by the ContextName parameter, which must be a String surrounded by quotation marks. This method fails if no object on the upper hierarchy of the object calling this method implements that context. The following contexts are available:

Container: Server and Viewer objects, that is, objects inserted in project files or on folders inside projects

Area: Alarm Areas, or any server object whose IsAlarmArea property is set to True

 

NOTE

Context names are case-insensitive. To check the context to which an object belongs, open its Properties Window, select the Item tab, and then check its valid contexts in the Contexts frame. In case an object defines more than one context, their names are presented in alphabetical order, separated by commas.

Was this page useful?