PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • Deletion of the last row
  • Various
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
Deletes a row 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.
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
MyArray.InsertLine(1, "A", "B", "C")
MyArray.InsertLine(2, "a", "b", "c")
MyArray.InsertLine(3, "D", "E", "F")
// Deletion of the 1° row
MyArray.DeleteLine(1) // Deletes "A B C"
// Display of the 1° row
Trace(MyArray[1,1], MyArray[1,2], MyArray[1,3])
// Displays "a b c"
Syntax
<WLanguage array>.DeleteLine(<Row subscript>)
<WLanguage array>: Array
Name of Array variable to use. This array must be a two-dimensional array.
<Row subscript>: Integer
Subscript of row to delete. A WLanguage error occurs if this parameter is greater than the number of array lines.
Remarks

Deletion of 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-allocating the array.

Various

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