-
Notifications
You must be signed in to change notification settings - Fork 2
_instances
bergsma edited this page Sep 26, 2014
·
5 revisions
#instances
###The instances() function returns the names of all the instances.
Syntax
names = instances ;
Arguments
- None
Return Value
str names
- instanceNames : The names of all the instances.
The STATUS variable is set to $ACKNOWLEDGE
str names
- instanceNames : The names of all the instances.
The STATUS variable is set to $ACKNOWLEDGE
Exceptions
- %ARGUMENT: Invalid arguments. Usage: names = instances ;
Description
- None
Examples
CONNECT()
{
puts { "I am ",self()," before instance" } ;
instance("new") ;
puts { "I am still ",self()," after instance" } ;
event ("new#"+self(2),"WAKEMEUP") ;
puts { "I am ",self()," going to a poll state" } ;
poll ;
puts { "I am ",self()," after polling" } ;
return ;
}
WAKEMEUP()
{
puts { "I am ",self()," running WAKEMEUP method" } ;
return ;
}
global WAKEMEUP ;
enable WAKEMEUP ;
CONNECT();
Related Links