2.46 :unuse()
This method removes or unloads a module that has been included with use
from a dialog or module object. If not used elsewhere, it is unloaded completely (including the removal of all instances).
Definition
boolean :unuse
(
anyvalue UsepathOrModul input
)
Parameters
- anyvalue UsepathOrModule input
- This parameter is used to specify the module as a Use Path (in the form of an identifier path) or directly as a module ID.
Return value
- false
- Module is imported not at all or not by
use
. - true
- Access to the module per
use
has been removed.
Objects with this method
Example
dialog D
use Customer.Models;
window Wi
{
MGbCustomer {}
pushbutton PbUnuse
{
.yauto -1;
.text "Unuse";
on select
{
if this.module:unuse("Customer.Models") then
this.sensitive := false;
endif
}
}
}
Availability
See also
Method :use()
Chapters “The Alternative Import Mechanism” and “Language Specification and Use Path” in manual “Programming Techniques”