PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Deleting a column from a Table control
  • Limits
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
ControlDelete (Function)
In french: ChampSupprime
AjaxNot available
Permanently deletes a control from a window, page or report.
Example
// 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 Name>)
<Control Name>: Character string (without quotes)
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 deleting a column from a Table control, the content of the browsing or memory Table control associated with this column is deleted.

Limits

A deleted control cannot be re-used later as source for cloning controls (ControlClone).
Related Examples:
The ControlClone function Unit examples (WINDEV): The ControlClone function
[ + ] Using ControlClone and ControlDelete.
Component : wd240vm.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
ControlDelete("") deletes current Window Control !
I just found that calling this function with an empty string deleted "Myself" which was an internal window control.

Just a little bit disconcerting but shows the value of validating parameters in calls to functions :-)

Using WD19 56s
SteveH
05 Nov. 2014