AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de colas, pilas, listas y arrays / Funciones de arrays
  • Deleting the last row
  • Miscellaneous
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
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.
Example
MonTableau is array of 2 by 3 strings
MonTableau.InsertLine(1, "A", "B", "C")
MonTableau.InsertLine(2, "a", "b", "c")
MonTableau.InsertLine(3, "D", "E", "F")
// Suppression de la 1° ligne
MonTableau.DeleteLine(1) // Supprime "A B C"
// Affichage de la 1° ligne
Trace(MonTableau[1,1], MonTableau[1,2], MonTableau[1,3])
// Affiche "a b c"
Syntax
<WLanguage array>.DeleteLine(<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 is not freed: New additions can be made without reallocating the array.

Miscellaneous

This function cannot be used with the fixed arrays.
Component: wd300vm.dll
Versión mínima requerida
  • Versión 23
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 28/03/2025

Señalar un error o enviar una sugerencia | Ayuda local