Using Commands from Other Modules

By default, command items are created as Public. This makes command items available for use by other modules as well as for use within the same module. Turning off the public flag prevents the user from using them in other modules. The Public property can be set from the command item Properties window.

Commands are available between modules as follows:

        Program commands can access all the commands defined within the program as well as the public commands of both the system and drivers.

        System commands can access all the commands defined within the system itself as well as the public commands of the drivers.

        Driver commands can access commands defined within the driver as well as public commands defined by the system and other drivers. It is recommended to not use other drivers or system commands from a driver, since it makes that driver dependent on the current system and on the driver shortcut names. This can make the driver work only on one system and can reduce the reusability of the driver.