DEACTIVATE
7.8.5, PLBCMP GUI Only
The DEACTIVATE instruction hides the object from the user. The instruction uses the following format:
|
|
|
|
|
Where:
label
Optional. A Program Execution Label.
object
Required. A previously defined and created object or object pointer that is deactivated.
Flags Affected: NONE
Supported objects:
|
| ||||
|
| ||||
|
| ||||
|
| ||||
|
|
Note the following:
DEACTIVATE is valid for all object variable types.
Once deactivated, objects may only be reactivated by using the ACTIVATE instruction.
An object must be CREATEd before being DEACTIVATEd. If this is not done, a runtime error of O105 is generated.
Example:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This DEACTIVATE instruction hides the stop button that had been created and activated. The actual button still exists in memory and may be re-activated by using the ACTIVATE instruction.
See Also: ACTIVATE, Object Instructions
![]() |