PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • 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.
WINDEViPhone/iPadWindows MobileUniversal Windows 10 App In a window or in a report, this control may have been created in the editor or by ControlClone.
WEBDEV - Server code In this version, this function can only be used to delete a control from a report.
Versions 18 and later
Universal Windows 10 App This function is now available in Windows Store apps mode.
iPhone/iPad This function is now available in the reports for iPhone/iPad applications.
New in version 18
Universal Windows 10 App This function is now available in Windows Store apps mode.
iPhone/iPad This function is now available in the reports for iPhone/iPad applications.
Universal Windows 10 App This function is now available in Windows Store apps mode.
iPhone/iPad This function is now available in the reports for iPhone/iPad applications.
Versions 19 and later
iPhone/iPad This function is now available in the windows for iPhone/iPad applications.
New in version 19
iPhone/iPad This function is now available in the windows for iPhone/iPad applications.
iPhone/iPad This function is now available in the windows for iPhone/iPad applications.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
WEBDEV - Server code This function is now available for the controls in the WEBDEV pages.
WEBDEV - Server code In a page, ControlDelete can only be used to delete the controls created by ControlClone.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
WEBDEV - Server code This function is now available for the controls in the WEBDEV pages.
WEBDEV - Server code In a page, ControlDelete can only be used to delete the controls created by ControlClone.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
WEBDEV - Server code This function is now available for the controls in the WEBDEV pages.
WEBDEV - Server code In a page, ControlDelete can only be used to delete the controls created by ControlClone.
Versions 23 and later
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
Java This function is now available for the Java applications.
AndroidAndroid Widget Java ControlDelete can only be used to delete the controls created by ControlClone.
New in version 23
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
Java This function is now available for the Java applications.
AndroidAndroid Widget Java ControlDelete can only be used to delete the controls created by ControlClone.
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
Java This function is now available for the Java applications.
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 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.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230vm.dll
Windows Mobile wp230vm.dll
Java wd230java.jar
Linux wd230vm.so
Android wd230android.jar
Minimum required version
  • 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
Nov. 05 2014