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.
WINDEVUniversal Windows 10 App In a window or in a report, this control may have been created in the editor or by ControlClone.
Versions 18 and later
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 18
Universal Windows 10 App This function is now available in Windows Store apps mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Versions 23 and later
Java This function is now available for the Java applications.
Java ControlDelete can only be used to delete the controls created by ControlClone.
New in version 23
Java This function is now available for the Java applications.
Java ControlDelete can only be used to delete the controls created by ControlClone.
Java This function is now available for the Java applications.
Java ControlDelete can only be used to delete the controls created by ControlClone.
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