13 Arrays - Uipath Studio

Опубликовано: 27 Апрель 2023
на канале: Sri Guru Tech
115
3

Arrays means collections of values

Two ways you can able to initialize the array with value.

a) You can initialize in the variable panel.

New String(){"item1","item2"}

b) Using the assign activity

{"item1","item2"}

Displaying Values

Note :

Index
0 1 2 3 4

Array length


Method or property :-

Description

Clear( )

Public shared method that sets a range of elements in the array to zero or to a null reference

Copy( )

Overloaded public shared method that copies a section of one array to another array

IndexOf( )

Overloaded public shared method that returns the index (offset) of the first instance of a value in a one-dimensional array

IsFixedSize

Public property that returns a value indicating whether the array has a fixed size

LastIndexOf( )

Overloaded public shared method that returns the index of the last instance of a value in a one-dimensional array

Length

Public property that returns the length of the array

Reverse( )

Overloaded public shared method that reverses the order of the elements in a one-dimensional array

Rank

Public property that returns the number of dimensions of the array

Sort( )

Overloaded public shared method that sorts the values in a one-dimensional array