IsDefined method
Returns boolean result indicating if the name passed as parameter
corresponds to a routine or variable in the running script.
variable = object.IsDefined(name)
variable |
Boolean |
True if the name exist, False if not |
object |
ScriptManager2 or ScriptAggregate |
Previously created ScriptManager2/ScriptAggregate object |
name |
String |
The name to check |
Remarks:
IsDefined method gives you a chance to see if a certain element is
defined in the script. Therefore before using the host.script property to
call a routine or acces a variable from the running script you can test if
it exists and perform error handling or alternative action.
Applies to:
ScriptManager2 and ScriptAggregate
objects
See also:
|