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
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
AddColumn (Function)
In french: AjouteColonne
Adds a column at the end of a two-dimensional array property (xlsDocument variable for example).
Syntax
<Result> = AddColumn(<WLanguage array> [, <Element row 1> [... [, <Element row N>]]])
<Result>: Integer
  • Index of the new column,
  • -1 if an error occurred.
<WLanguage array>: Array
Name of the Array variable to use. This array must be a one-dimensional array or a two-dimensional array.
<Element row 1>: Type of array elements, optional
Element of the column that will be added into the specified array. Each element corresponds to a row in the array. The type of the added element must be compatible with the type of the relevant row.
If none of these parameters is specified, an empty column is added to the array. The rows are initialized with the default value of the type of the other array elements.
If one of these parameters is not specified, the corresponding row is initialized with the default value of the type of the other array elements.
<Element row N>: Type of array elements, optional
Element of the column that will be added into the specified array. Each element corresponds to a row in the array. The type of the added element must be compatible with the type of the relevant row.
If none of these parameters is specified, an empty column is added to the array. The rows are initialized with the default value of the type of the other array elements.
If one of these parameters is not specified, the corresponding row is initialized with the default value of the type of the other array elements.
Remarks
When AddColumn is called:
  • the advanced variable must be created.
  • the advanced type must have an enumerator of modifiable collection type.
  • the advanced type is automatically enlarged to receive the new column.
  • the rows are initialized with the values passed as parameter. If no value is passed in parameter, the rows are initialized with the default value of the type of the array elements.
Component: wd290vm.dll
Versión mínima requerida
  • Versión 14
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 26/05/2022

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