DeleteControlContent
This reference collection includes Vector documentation reproduced with permission. Snippets may require configuration-specific symbols and are not all standalone programs. Sources and validation limits.
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
—
Reference example from the CANoe 12 help. Check the required configuration, database objects and API availability in your installed version; this is not a recorded compiler or runtime test. The following blocks are separate fragments or alternatives, not one combined program.
// 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("", "");
Choose only the intended clearing scope: the three calls illustrate alternatives. An empty panel or control name broadens the operation to all matching loaded controls; it is not a harmless omitted argument.