MODULE


PLBCMP GUI Only, 10.6

square.png Methods

The MODULE instruction declares a PL/B module object variable. The MODULE object is implemented as a PL/B runtime internal object to manage the current program module being executed where it is executing. The MODULE object provides an interface and control of operations for PL/B programs including the main program and load modules. The MODULE object declaration uses the following statement format:

 

[label]

MODULE

 

Where:

label

Optional. A Data Label.

Flags Affected: NONE

Note the following:

  1. The MODULE object represents the current PL/B program being executed.

  2. There are no properties for a MODULE object.

  3. There are no events for a MODULE object.

  4. There are no PL/B instructions other than methods that are used with a MODULE object. The methods performed for the MODULE object only take affect for the program module where the PL/B runtime is executing. The MODULE object has the following methods:

  5.  

    Method

    This method ...

    InitializeUda

    restores the current program module UDA to be the same as originally loaded for the module.

    Unload

    Tis implemented to unload a load module when the PL/B runtime is using the 'PLB_DYNAMICLOADMOD=ON' keyword. This method can only be used to unload PL/B load modules. This method cannot unload the PL/B main program.

 

 

See Also: Object Output Instructions

 



PL/B Language Reference MENUITEM MOVIE