Description: This function deletes a module from the system.
Warning: This function should be used by advanced users only. Irrevocable alteration of your application may occur
Returns: Numeric (see table in comments)
Usage: Script
Format: DeleteModule(Module)
Parameters:
Module {
Module } { required } { no default
}
Any expression that
gives the module value of the module to delete.
Comments: This statement deletes a module from the system, as well as removing its code from the document file, if certain conditions hold. There must not be any running instances of this module. All of the variables in the module must only be referenced within that module: that is, none of the variables can be referenced outside of the module which they are in. Module itself must not be referenced in any other module at all.
This function returns values as follows:
|
Return Value |
Meaning |
|
0 |
Module successfully deleted. |
|
1 |
Module not deleted, there are instances of it running. |
|
2 |
Module not deleted, module is externally referenced. |
|
3 |
Module not deleted, run files are out of sync. |
See Also:
ClearModule | DeleteOptional | DeleteState | DeleteStatement | DeleteVariable