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 elements
  • Miscellaneous
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Deletes all elements:
  • from a one-dimensional or two-dimensional WLanguage array.
  • from an associative array.
  • from the advanced array property (array of gglCalendar events, ...).
  • from a WLanguage queue.
  • from a WLanguage stack.
  • from a WLanguage list.
Remarks:
  • This function is equivalent to ArrayDeleteAll.
  • PHP This function can only be used with Array and Associative array variables.
  • WEBDEV - Código Navegador This function can only be used with:
    • array and associative array variables.
    • Novedad versión 2025
      WLanguage queues.
    • Novedad versión 2025
      WLanguage stacks.
Ejemplo
MyArray is array of 2 strings
MyArray[1] = "WINDEV"
MyArray[2] = "WEBDEV"
// Delete all the elements
DeleteAll(MyArray)
Sintaxis
DeleteAll(<WLanguage variable>)
<WLanguage variable>: Array, Queue, Stack or List
Name of variable to use. This variable can be:
  • an Array. This array must be a one-dimensional array or a two-dimensional array.
  • a List.
  • a Stack.
  • a Queue.
PHP Only Array variables can be used.
WEBDEV - Código Navegador Only array, queue and stack variables can be manipulated.
Observaciones

Deleting elements

  • One-dimensional array: array size changes to 0. The array is not freed: new additions can be made without reallocating the array.
  • Two-dimensional array: only array rows are deleted. The columns are kept. Therefore, ArrayAddLine can be used after ArrayDeleteAll.
  • associative array: all elements of the array are deleted.
  • Queue all elements in the queue are deleted.
  • Pile: all items in the stack are deleted.
  • List: all list items are deleted.
Note: To reset the array elements to 0 or to the empty string "" without changing the size of the array, use the VariableReset function..
WEBDEV - Código NavegadorPHP Elements of Queue, Stack and List variables cannot be deleted.

Miscellaneous

This function cannot be used with the fixed arrays.
Componente: wd300vm.dll
Versión mínima requerida
  • Versión 14
Esta página también está disponible para…
Comentarios
Exemplo DeleteAll
//Exemplo DeleteAll
//Vamos eliminar os dados da array

tabListanumeros is array of 0 int
ArrayAddLine(tabListanumeros,10)
ArrayAddLine(tabListanumeros,5)
ArrayAddLine(tabListanumeros,3)
ArrayAddLine(tabListanumeros,1)
EDT_Texto = ArrayToString(tabListanumeros)
//http://doc.windev.com/en-US/?1000017357&name=deleteall_function
Info("Elimina Dados do Array")

DeleteAll(tabListanumeros)

EDT_Texto = ArrayToString(tabListanumeros)

//Blog com Video e Exemplo
http://windevdesenvolvimento.blogspot.com.br/2016/12/aula-997-windev-array-deleteall.html
https://www.youtube.com/watch?v=KghH0g-lRck
De matos
14 12 2016

Última modificación: 27/03/2025

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