Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

 

GlobalStubs Statement Summary

GlobalStubs is a nonterminal, utility statement that occurs in command scripts. It authors the stubs for a set of references that have been loaded previously via the Reference statement. The statement is followed by a set of Load substatements which specify which compiled VBIfiles are to be used to determine which components in the references have been referenced.

 

The GlobalStubsstatement itself has no attributes.

 

The substatements of the GlobalStubsstatement are as follows:

 

SubstatementDescription
LoadThis substatement specifies the full pathname of a virtual binary information file via an id attribute. This file is loaded into a temporary storage area where it is searched for references to the components in the load references.

The script errors associated with the GlobalStubsstatement are as follows:

 

ErrorDescription
1064Language command missing required id attribute.
1065Unable to store Language id: %1d"
1066The following record is not recognized: %1d

The typical script using the GlobalStubsstatement would be as follows.

 

First, a storage statement is needed to hold the references to be loaded.

 

Code Block
themeEclipse
languagenone
theme
Eclipse
linenumberstrue
   <gmBasic>
      <Storage Action="Create" Identifier="..." />

 

Second, all of the standard locations need to be specified so that the reference files themselves can be located and loaded and the authored stubs can be sent to the desired deployment location.

 

Code Block
themeEclipse
languagenone
themeEclipse
linenumberstrue
      <Select DeployLocation="..." />
      <Select Library="..." />
      <select Target="..." />
      <Select Local="..." />
      <Select System="..." />

 

Third, a set of reference statements is used to specify the references for which stubs are to be authored. The actual declarations within these references are loaded in the storage area created above.

 

Code Block
themeEclipse
languagenone
themeEclipse
linenumberstrue
      
<Reference id="..." />
      <Reference id="..." />
    ....
Fourth, an output statement is needed to specify the file to receive the authored stubs.

 

Code Block
themeEclipse
languagenone
themeEclipse
linenumberstrue
      
<Output Status="New" Filename="GlobalStubs.bnd" />
Finally, the GlobalStubs statement itself is used to specify the previously compiled VBIfiles whose content makes references to components in the loaded references.

 

Code Block
themeEclipse
languagenone
themeEclipse
linenumberstrue
      <GlobalStubs >
         <Load id="...vbi" />
         <Load id="....vbi" />
             ....
         <Load id="....vbi" />
      </GlobalStubs>
      <Storage Action="Close" />
   </gmBasic>
Panel
bgColorCCFFFF
titleTable of Contents

Table of Contents