PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Equivalences
  • Various
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
Returns the characteristics of an array: type of elements, number of dimensions, dimensions, ...
Note: This function can only be used on the WLanguage arrays.
Versions 15 and later
Android This function is now available for the Android applications.
New in version 15
Android This function is now available for the Android applications.
Android This function is now available for the Android applications.
Versions 16 and later
Universal Windows 10 App This function is now available for the Windows Phone applications.
New in version 16
Universal Windows 10 App This function is now available for the Windows Phone applications.
Universal Windows 10 App This function is now available for the Windows Phone applications.
Versions 17 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 17
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 18 and later
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 18
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Versions 21 and later
Apple Watch This function is now available in Apple Watch mode.
WEBDEV - Browser code This function is now available in browser code.
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.
WEBDEV - Browser code This function is now available in browser code.
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.
WEBDEV - Browser code This function is now available in browser code.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
// Total number of elements found in a one-dimensional array
MyArray is array of 5 int
...
nbDim is int
nbDim = ArrayInfo(MyArray, tiTotalNumber)
// nbDim is equal to 5
// Array dimensions
MyArray is array of 5 by 2 int
nbRowDim is int
nbRowDim = ArrayInfo(MyArray, tiNumberRows)
// NbRowDim is equal to 5
nbColumnDim is int
nbColumnDim = ArrayInfo(MyArray, tiNumberColumns)
// NbColumnDim is equal to 2
Syntax
<Result> = ArrayInfo(<Array Name> , <Type of Information> [, <Additional Parameter>])
<Result>: Integer or boolean
Requested information.
Note: The function returns no result on a dynamic array that was not allocated.
<Array Name>: Array
Name of Array variable to use.
<Type of Information>: Integer constant
Type of information to retrieve:
tiAssociativeWithDuplicateBoolean.
  • True if the associative array supports the duplicates
  • False otherwise.
Versions 16 and later
tiElementDefinition
New in version 16
tiElementDefinition
tiElementDefinition
Definition variable. Definition of the type of elements.
WEBDEV - Browser code This constant is not available.
tiDimensionInteger. Number of elements found in a dimension of the array.
<Additional Parameter> must contain the subscript of the dimension whose number of elements is requested.
Default value for <Additional Parameter>: 1
Associative array: Number of elements found in the array.
tiDynamicBoolean.
  • True if the array is a dynamic array.
  • False otherwise.
WEBDEV - Browser code This constant is not available.
tiNumberColumnsInteger. Number of columns found in a two-dimensional array. The number of columns corresponds to the 2nd dimension of the array.
If the array in not a two-dimensional array, tiNumberColumns = 0.
Associative array: 0.
tiNumberDimensionsInteger. Number of array dimensions (between 1 and 10)
Associative array: 1.
tiNumberRowsInteger. Number of rows found in a two-dimensional array. The number of rows corresponds to the 1st dimension of the array.
If the array is not a two-dimensional array, tiNumberRows = 0.
Associative array: 0.
tiTotalNumberInteger. Total number of elements found in the array.
tiElementSizeInteger. Size (in bytes) of an array element.
WEBDEV - Browser code This constant is not available.
tiTotalSizeInteger. Total size (in bytes) of array.
WEBDEV - Browser code This constant is not available.
tiKeyTypeInteger. Type of keys found in the associative array. <Result> is an integer corresponding to the constants of TypeVar.
Non-associative array: <Result> is equal to 0.
tiElementTypeInteger. Type of array elements. <Result> is an integer corresponding to the constants of TypeVar.
WEBDEV - Browser code This constant is not available.
<Additional Parameter>: Optional
Additional parameter that must be specified according to the requested information.
Remarks

Equivalences

  • The tiNumberRows constant is equivalent to the tiDimension constant used with <Additional Parameter> = 1. The following codes are identical:
    ArrayInfo(MyArray, tiNumberRows)
    ArrayInfo(MyArray, tiDimension, 1)
  • The tiNumberColumns constant is equivalent to the tiDimension constant used with <Additional Parameter> = 2.
    ArrayInfo(MyArray, tiNumberColumns)
    ArrayInfo(MyArray, tiDimension, 2)

Various

This function can be used with:
  • the simple arrays.
  • the fixed arrays.
  • the dynamic arrays.
  • the associative arrays.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230vm.dll
Windows Mobile wp230vm.dll
WEBDEV - Browser code WDJS.DLL
Java wd230java.jar
Linux wd230vm.so
Android wd230android.jar
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment