SIMPOL Documentation

!loadmodulefile()

Prototype

!loadmodulefile( string <filename>, integer <error>)

Return value

.nul

Description

The first parameter is the name of the compiled SIMPOL module to be loaded. The second parameter must be an integer object where any error upon loading the module will be placed. If it is not included, any error will cause the program to halt. Once loaded, a module cannot currently be unloaded. Modules that are loaded in this way do not, by default, expose their functions or data types. In order to access a function or data type from an external module, the export keyword must have been used in their definition.

Parameters

NameDefaultTypeDescription
filename.nulstringThe name of the module file that is to be loaded.
error.nulinteger This parameter must be an object, not an integer value. If an error (other than a syntax or parameter passing error) occurs because the new object position is not completely within the form, then the error number will be output to the specified object. If no error object is provided and an error occurs then the program will exit with an unhandled exception.