FB_Exit
Short summary
Mark the object as deleted, as it staiys in the memory.
- Return type:
BOOL
Parameters
| Name | Type | Comment | Kind |
|---|---|---|---|
| bInCopyCode | BOOL | TRUE: the exit method is called in order to leave the instance which will be copied afterwards (online change). | input |
Code
Declaration
METHOD FB_Exit : BOOL
VAR_INPUT
(* TRUE: the exit method is called in order to leave the instance which will be copied afterwards (online change).*)
bInCopyCode : BOOL;
END_VAR
Implementation
IF THIS^.isObjectValid(THIS^.nodevalue) THEN
THIS^.nodevalue.deepDestruct();
END_IF
IF THIS^.isObjectValid(THIS^.left) THEN
THIS^.left.deepDestruct();
END_IF
IF THIS^.isObjectValid(THIS^.right) THEN
THIS^.right.deepDestruct();
END_IF