Permanently deletes a control from a window, page or report.
// Delete a group of controls
FOR I = 1 TO 10
s is string = "EDT_" + I
IF ControlExist(s) = True THEN
ControlDelete(s)
END
END
Syntax
ControlDelete(<Control used>)
<Control used>: Control name
Name of the control or column (in a Table control) to delete. A WLanguage error occurs if this control does not exist.
Remarks
Deleting a column from a Table control
When a column is deleted from a Table control (based on a data file or populated programmatically), the contents associated with the column are also deleted.
A deleted control cannot be re-used later as source for cloning controls (
ControlClone).
Related Examples:
|
Unit examples (WINDEV): The ControlClone function
[ + ] Using ControlClone and ControlDelete.
|