panelOff()

Closes a defined childpanel without connection to the Event Manager.

Synopsis

int panelOff(dyn_anytype params);

Parameter

Parameter Description
params

The panel parameters:

params[1] string - Name of the modules

params[2] string - Name of the childpanel which should be closed

[params[3]] dyn_anytype - Return array

Return value

In the event of an error, the function returns -1 otherwise, 0.

Error

Missing or wrong arguments.

Description

The function panelOff() closes the childpanel. The _Ui data points will not be used.

Example

main()
{
   dyn_anytype da, daa;
   da[1] = myModuleName(); 
   da[2] = myPanelName();
   daa[1] = 0.0; daa[2] = "FALSE"; // Return value optional 
   da[3] = daa; // dyn_anytype binding
   if(isEvConnOpen())
     PanelOffReturn(makeDynFloat(0), makeDynString("FALSE"));
   else
     panelOff(da);
 }

Assignment

panel.ctl

Availability

UI