PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Inserting a column into an advanced array property
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
Inserts a column into a given position in an advanced two-dimensional array property (xlsDocument, ...).
Versions 18 and later
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 18
Universal Windows 10 App This function is now available in Windows Store apps mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Versions 19 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 19
iPhone/iPad This function is now available for the iPhone/iPad applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Versions 21 and later
Apple Watch This function is now available in Apple Watch mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Apple Watch This function is now available in Apple Watch mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Apple Watch This function is now available in Apple Watch mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Syntax
InsertColumn(<Array Name> , <Insertion Subscript> [, <Element Row 1> [... [, <Element Row N>]]])
<Array Name>: Array
Name of Array variable to use. This array must be a two-dimensional array.
<Insertion Subscript>: Integer
Subscript where the column must be inserted. From this subscript, all the columns will be shifted by 1 column.
If <Insertion Subscript> is equal to the number of array columns + 1, the column is added at the end of the array (equivalent to AddColumn).
A WLanguage error occurs if <Insertion Subscript> is greater than the number of array columns + 1.
<Element Row 1>: Type of array elements, optional
Element of the column that will be inserted 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 inserted into 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 inserted 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 inserted into 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

Inserting a column into an advanced array property

When using InsertColumn:
  • the advanced variable must be allocated.
  • 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 in parameter. If no value is passed in parameter, the rows are initialized with the default value of the type of the array elements.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230vm.dll
Windows Mobile wp230vm.dll
Linux wd230vm.so
Minimum required version
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment