ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Queue, stack, list and array functions / Array functions
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
<Array>.AddAdds an element in last position:
  • of a one-dimensional WLanguage array.
  • of an advanced array property (array of events of gglCalendar, etc.).
  • from a WLanguage list.
<Array>.AddLineAdds a row at the end:
  • of a one- or two-dimensional WLanguage array.
  • of an advanced two-dimensional array property (xlsDocument, etc.).
<Array>.AddReferenceAdds the reference of an object at the last position in a one-dimensional array.
<Array>.AddSortedAdds an element to a one-dimensional WLanguage array taking into account:
  • the sort criteria defined by <Array>.Sort
  • the comparison operator described in the class, if the elements of the array are class instances.
<Array>.AllFalseReturns True if all the elements of an array are False.
<Array>.AllTrueReturns True if all the elements of an array are True.
<Array>.AnyFalseReturns True if at least one element of an array is False.
<Array>.AnyTrueReturns True if at least one element of an array is True.
<Array>.ApplyExecutes a procedure for each element of a WLanguage array.
<Array>.CopyCopies the content of an array to another array.
<Array>.CountReturns:
  • the number of elements in a one-dimensional array.
  • the number of rows in a two-dimensional array.
  • the number of elements in the first dimension of a three-dimensional or N-dimensional array.
<Array>.DeleteDeletes an element at a given position:
  • from a one-dimensional WLanguage array.
  • from an advanced array property (array of gglCalendar events, etc.).
  • from an associative array.
  • from a WLanguage list.
<Array>.DeleteAllDeletes 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.
<Array>.DeleteDuplicateDeletes the duplicates from an array.
<Array>.DeleteLineDeletes a row 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.
<Array>.DistinctReturns an array without duplicates.
<Array>.FilterReturns an array containing the elements of a source array for which a procedure returns True.
<Array>.InfoReturns the characteristics of an array: type of elements, number of dimensions, dimensions, etc.
<Array>.InsertInserts an element at a given position:
  • into a one-dimensional array.
  • into an associative array.
  • into an advanced array property (array of gglCalendar events, etc.).
  • into a WLanguage list.
<Array>.InsertLineInserts a row at a given position:
  • into a two-dimensional WLanguage array.
  • into an advanced two-dimensional array property (xlsDocument, etc.).
<Array>.InsertReferenceAdds the reference of an object at given position in a one-dimensional array.
<Array>.IntersectReturns an array corresponding to the intersection of two arrays.
<Array>.MapExecutes a procedure on each element of a source array and returns the results in a WLanguage array.
<Array>.MaxReturns the greatest value in the array.
<Array>.MeanCalculates the mean of the values within an array.
<Array>.MinReturns the lowest value in the array.
<Array>.MoveAllows you to:
  • move an element in a one-dimensional WLanguage array or in an advanced array property (array of gglCalendar events, etc.). The other array elements are moved accordingly.
  • swap two elements in a one-dimensional WLanguage array or in an advanced array property (array of gglCalendar events, etc.).
<Array>.MoveLineAllows you to:
  • move a row in a two-dimensional array or in an advanced array property. The other array rows are moved accordingly.
  • swap two rows in a two-dimensional array or in an advanced array property.
<Array>.ReduceApplies a computation to each element of an array.
<Array>.ReverseReverses the content of a one-dimensional array.
<Array>.SeekSearches for the index of an element in a WLanguage array.
<Array>.SeekByProcedureSeeks an element in a one-dimensional WLanguage array by using a comparison procedure.
<Array>.ShuffleShuffles the elements of a WLanguage array.
<Array>.SortSorts a WLanguage array.
<Array>.SumCalculates the sum of the array elements.
<Array>.SwapLineUsed to swap two rows in a two-dimensional array or in an advanced array property.
<Array>.UnionReturns an array corresponding to the union of two arrays.
<Array>.UnionAllReturns an array corresponding to the union of two arrays (without deleting duplicates).
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/21/2023

Send a report | Local help