Skip to content

gmplImportListStatement

ImportList is a nonterminal, utility statement that occurs only in ImportsGlobal scripts. It specifies the identifier of an external library whose components have been referenced by a group of code units. It contains a series of Referenced substatements which list the individual components within the external that were referenced. ImportsGlobal scripts are authored by gmBasic. Rather than authoring any local stubs with the translated codes gmBasic can instead manage an ImportsGlobal_(%= langid %).xml file which maintains a list of all referenced components in all imported references. See the Select attribute ImportsGlobal for a discussion of the process used to author these scripts.

The attributes of the ImportList statement are as follows:

AttributeDescription
IdThis attribute simply identifies the external library that has been referenced by the
code units. It is a local filename like mso.dll or msword9.olb or
mscomctl.ocx or msado20.tlb.

The substatements of the ImportList statement are as follows:

SubstatementDescription
ReferencedThis substatement specifies a particular component within the external that was referenced
along with some information about that reference.


Referenced ImportList Substatement Summary

Section titled “Referenced ImportList Substatement Summary”

Referenced is a terminal substatement of the ImportList statement. It specifies a particular component within the external identifier in the ImportList that was referenced along with some information about that reference.

The attributes of the Referenced substatement are as follows:

AttributeDescription
IdThis attribute is a qualified identifier, relative to the external library, of a component
that was referenced and should be authored in the within the Global Stub.
ImplementedThis attribute is a flag whose On entry indicates that the component is part of an
implemented interface.
ActivexThis attribute is a flag attributable to CoClasses whose On entry indicates the CoClass
is a ActiveX control.
HasforeachThis attribute is a flag attributable to classes and coclasses whose On entry indicates
that the component is used in ForEach and must, therefore, implement IEnumerable.
ConstructorThis attribute is a flag attributable to event handlers whose On entry indicates that
they are being called directly within the code; therefore, their wrapper event arguments
class requires a constructor.
ColobjectThis attribute is a flag attributable to the library whose On entry indicates that
a reference component has a collection type; therefore, the library stub must
import VBNET = Microsoft.VisualBasictype.
EventargsThis attribute is a flag attributable to event handlers whose On entry indicates
that they have arguments.