CAPL Script

DeleteControlContent

Syntax

void DeleteControlContent(char[] panel, char[] control);

Function

Deletes the content of thePanel DesignerCAPL Output Viewcontrol. The panel is accessed by its individual panel name that is entered in thePanel Designer.

Parameters

panel Panel name, restricted to 128 characters."" – references allloaded panelsIf you open a panel the first time, the panel is loaded.
If you close the panel, it remains loaded.

control Name of the CAPL Output View control, restricted to 128 characters."" – references all CAPL Output View controls on the panel.

Return Values

// Deletes the contents of a specific CAPL Output View control in the panelmotorDeleteControlContent(„motor“, „Outputview“); // Deletes the contents of all CAPL Output View controls in the panelmotorDeleteControlContent(„motor“, „“); // Deletes the contents of all CAPL Output View controls in all panelsDeleteControlContent(„“, „“);