This function is now available for Android applications.

New in version 15

This function is now available for Android applications.

This function is now available for Android applications.

Versions 16 and later

This function is now available for Windows Phone applications.

New in version 16

This function is now available for Windows Phone applications.

This function is now available for Windows Phone applications.

Versions 17 and later

This function is now available for iPhone/iPad applications.

New in version 17

This function is now available for iPhone/iPad applications.

This function is now available for iPhone/iPad applications.

Versions 18 and later

This function is now available in Android Widget mode.

This function is now available in Windows Store apps mode.

New in version 18

This function is now available in Android Widget mode.

This function is now available in Windows Store apps mode.

This function is now available in Android Widget mode.

This function is now available in Windows Store apps mode.

Versions 21 and later

This function is now available in Apple Watch mode.

This function is now available in browser code.

This function is now available in Universal Windows 10 App mode.

New in version 21

This function is now available in Apple Watch mode.

This function is now available in browser code.

This function is now available in Universal Windows 10 App mode.

This function is now available in Apple Watch mode.

This function is now available in browser code.

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 = MyArray.Info(tiTotalNumber) // nbDim is equal to 5

// Array dimensions MyArray is array of 5 by 2 int nbRowDim is int nbRowDim = MyArray.Info(tiNumberRows) // NbRowDim is equal to 5 nbColumnDim is int nbColumnDim = MyArray.Info(tiNumberColumns) // NbColumnDim is equal to 2

Syntax

<Result> = <WLanguage array>.Info(<Type of information> [, <Additional parameter>])

<Result>: Integer or boolean

Requested information.

Note: The function returns no result on a dynamic array that has not been created.

<WLanguage array>: Array

Name of Array variable to use.

<Type of information>: Integer constant

Type of information to retrieve:

tiAssociativeWithDuplicate

Boolean.

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.

This constant is not available.

tiDimension

Integer. 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.

tiDynamic

Boolean.

True if the array is a dynamic array.

False otherwise.

This constant is not available.

tiNumberColumns

Integer. 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.

tiNumberDimensions

Integer. Number of array dimensions (between 1 and 10) Associative array: 1.

tiNumberRows

Integer. 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.

tiTotalNumber

Integer. Total number of elements found in the array.

tiElementSize

Integer. Size (in bytes) of an array element.

This constant is not available.

tiTotalSize

Integer. Total size (in bytes) of array.

This constant is not available.

tiKeyType

Integer. 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.

tiElementType

Integer. Type of array elements. <Result> is an integer corresponding to the constants of TypeVar.

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: