How To Initialize Array/List – In UiPath

Sometimes when we work with List/Array, we might want to initialize them.

Let’s see how do do that!!!

Initialize List

my_List = new List(of string)(new string(){“value1”,“value2”})

Initialize Array

my_Array = new string(){“value1″,”value2”}

Note:
1.Create a List/Array with your required DataType i.e string,Int,boolean….
2.value1,value2… are your values with which you want to initialize the List/Array with

Example

Implementation using UiPath :

List

UiPath Initialize a List

Array

UiPath Initialize a Array

 

 

Hope it has helped you…

Advertisements

Author: Sharath Raju

Founder@www.ExcelCult.com

Leave a Reply