Skip to main content

DeleteControlContent

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

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

Description

Deletes the content of the CAPL Output View in the Panel Designer. The panel is accessed by its individual panel name that is entered in the Panel Designer.

Parameters

  • panel: Panel name, restricted to 128 characters. "" – references all loaded panels. If 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

Example

// Deletes the contents of a specific CAPL Output View control in the panel motor
DeleteControlContent("motor", "Outputview");

// Deletes the contents of all CAPL Output View controls in the panel motor
DeleteControlContent("motor", "");

// Deletes the contents of all CAPL Output View controls in all panels
DeleteControlContent("", "");