PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • 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/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
ControlDelete (Function)
In french: ChampSupprime
AjaxNot available
Permanently deletes a control from a window, page or report.
WINDEVUniversal Windows 10 AppiPhone/iPad In a window or in a report, this control may have been created in the editor or by ControlClone.
WEBDEV - Server code In a page, ControlDelete can only be used to delete the controls created by ControlClone.
AndroidAndroid Widget 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 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.

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: wd270vm.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