AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de colas, pilas, listas y arrays / Funciones de arrays
  • Operating mode
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Otros
Procedimientos almacenados
Executes a procedure for each element of a WLanguage array.
This function can be used:
  • on one-dimensional arrays s,
  • Novedad versión 2024
    about arrays associations.
    AndroidWidget Android Not available.
Ejemplo
tabClient is array of Client
tabClient.Applique(AjoutListe)

INTERNAL PROCEDURE AjoutListe(pClient)
	LISTE_Client.Ajoute(pClient.Nom)
END
Sintaxis
<Source array>.Apply(<Operation to perform>)
<Source array>: Nombre del control
Name of the Array variable to use. This array can be:
  • a one-dimensional array.
  • Novedad versión 2024
    an array association.
    AndroidWidget Android Not available.
<Operation to perform>: Procedimiento WLanguage
Name of the WLanguage procedure to be executed for each element of the <Source array>. This procedure can be:
  • a global or local procedure,
  • an internal procedure.
It is also possible to directly use a lambda procedure.
Observaciones

Operating mode

The <Operation to perform> procedure is called for each element of the array. The Procedure receives the following parameters:
  • manipulated element.
  • Novedad versión 2024
    the key to the element.
    In the case of a simple array, the key corresponds to the element index. This parameter is optional.
    In the case of an associative array, the key corresponds to the element indexing key..
    AndroidWidget Android Not available.
Not all the results of the calls are stored.

Sequence of functions
You can use array functions in a sequence.
The following functions can be used in a sequence: This sequence can be used as a source for a FOR ALL statement or it can end with one of the following functions: Example:
gnMoyenne = gtabUser.Filtre(cbFiltre).Map(cbTransforme).Mean()
Clasificación Lógica de negocio / UI: Código neutro
Componente: wd290vm.dll
Versión mínima requerida
  • Versión 25
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 19/06/2023

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