Default Names
The ActiveX Import Wizard generates default names for all components that need to be named. You can override these default names for classes (that is, for controls, automation objects, and interfaces), methods, and properties.
These default names are based on the name of the corresponding component in the imported type library. However, as the COM naming and the JADE naming rules are not the same, name transformation takes place. The rules for this transformation are as follows.
-
If the ActiveX name starts with an invalid JADE naming character (for example, the underscore character), the name is prefixed by I for an interface class, O for an object class, m for a method, and p for a property and method parameter. For example, the _WorkbookEvents interface name becomes I_WorkbookEvents.
-
The first letter of a class name is an uppercase character and the first letter of methods and properties is a lowercase character.
-
If the ActiveX name contains any invalid JADE naming characters, they are converted to an underscore character.
-
If the name is longer than 100 characters, it is truncated to 100 characters.
-
If the generated name is a duplicate name, a counter is appended to that name to make it unique. The counter is an underscore character followed by an integer value, which is incremented until the name becomes unique. For example, the method IsKindOf becomes isKindOf_1.