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…

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: