AddObject Method |
Adds an object to a named dictionary.
Signature
RetVal = object.AddObject(Keyword, ObjectName)
Object
Dictionary
The object or objects this method applies to.
Keyword
String; input-only
The keyword to be listed in the dictionary for this object.
ObjectName
String; input-only
The rxClassName of the object to be created in the dictionary.
RetVal
Object
The newly created object.
Remarks
This method adds a new entry specified by ObjectName to the dictionary. If the entry already exists, it is replaced by the new object. The name of the object is specified by Keyword.
For example, an object with the Keyword "ThirdKeyword" and an object type "Object3" can be added to MyDictionary to create the following:
MyDictionary Keyword Object FirstKeyword Object1 SecondKeyword Object2 ThirdKeyword Object3
NOTE The ObjectARX application that defines the object must be loaded for this method to function correctly. See the LoadARX method for information on loading ObjectARX applications.
Comments? |