PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • Deleting the last row
  • Miscellaneous
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
Deletes a line at a given position:
  • from a two-dimensional array.
  • from the advanced array property (array of gglCalendar events, etc.)
The array size is automatically reduced.
Remark: This function is equivalent to ArrayDeleteLine.
Versions 16 and later
PHP This function is now available for PHP sites.
New in version 16
PHP This function is now available for PHP sites.
PHP This function is now available for PHP sites.
Versions 21 and later
WEBDEV - Browser code This function is now available in browser code.
New in version 21
WEBDEV - Browser code This function is now available in browser code.
WEBDEV - Browser code This function is now available in browser code.
Example
MyArray is array of 2 by 3 strings
InsertLine(MyArray, 1, "AT", "B", "C")
InsertLine(MyArray, 2, "a", "b", "c")
InsertLine(MyArray, 3, "D", "E", "F")
// Delete the 1st line
DeleteLine(MyArray, 1) // Deletes "A B C"
// Display the 1st line
Trace(MyArray[1,1], MyArray[1,2], MyArray[1,3])
// Displays "a b c"
Syntax
DeleteLine(<WLanguage array> , <Row index>)
<WLanguage array>: Array
Name of the Array variable to use. This array must be a two-dimensional array.
<Row index>: Integer
Index of the row to delete. A WLanguage error occurs if this parameter is greater than the number of array lines.
Remarks

Deleting the last row

If the last line is deleted, the array is resized to 0. The array has not been deleted: New additions can be performed without re-creating the array.

Miscellaneous

This function cannot be used with the fixed arrays.
Component: wd270vm.dll
Minimum version required
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment