Skip to content

gmplMigclassStatement

Migclass is a nonterminal, refactoring statement that occurs within the scope of a HostId oriented Refactor statement, but also within command scripts and language files. This statement introduces a new class that contains related refactoring information used for complex migration operations, especially as related to designer code.

The attributes of the Migclass statement are as follows:

AttributeDescription
IdThis attribute is the identifier of the migration class. It must be unique
within the scope of its parent, which is the hostid if the statement is
within a Refactor, else it is the root. It is not case sensitive.
ParentThis attribute specifies the “parent” of the migration class. In this content
”parent” refers to the external class whose components the migration class
is intended to enhance or describe. This is usually an external library
being migrated or a VB6 language class to be authored.
MigNameThis attribute supplies the name to be used when for the migration class
in the target translations.
needsinitThis is a On/Off flag attribute. The On setting sets the Needsinit status
flag On which means that the class needs to be initialized by the author when declared.
NetNameThis attribute supplies the name to be used when for the migration class
in the target translations. It differs from MigName in that it also sets the External
status flag On. This means that the class is external to the library in the target
implementation to which it was assigned in the source implementation. Therefore,
when authoring the identifier of the class do not precede it with its source parent membership
information.
CreatableThis is an On/Off flag attribute. The Off setting sets the Noncreatable status
flag On. It means that the migration class objects cannot be created. When declaring objects
of this class simply NULL them as opposed to using new to create an instance.

The declarations within the Migclass statement are as follows:

SubstatementDescription
PropertyDeclares a property within the migration class
FieldDeclares a field within the migration class
MethodDeclares a method within the migration class
EnumerationDeclares an enumeration within the migration class

The script errors associated with the Migclass statement are as follows:

ErrorDescription
1089Migclass command missing required id attribute.
1090Unable to store MIGCLASS LIB_COMP vector: %1d
1091Unable to find parent CLASS: %1d
1092Encountered following when expecting class component: %1d