Why do we instantiate new list or new String in Uipath

why do we instantiate new list or new String in Uipath?

@akshay_naik

Welcome to community

In Variable Section->declare Variable Name-> Choose VariableTypes as Browser for Types->In the search box type as list as below and select string

write in default as below for example

Hope this helps you

Thanks

@ksrinu070184 - I think the question is Why not how …

1 Like

@akshay_naik - Please check this academy course…

RPA Developer Foundation --> Data Manipulation --> List…

This will give you a idea about Instantiate

Thank you both for looking into this and responding. I was already going through the Data Manipulation>Lists and hence queried. Since we already create a variable and the desired type then why is there need to ‘instantiate’ it.
Thanks

Hi @akshay_naik

I think u mean why we use this Assign

listvar = New List(Of String)

Then the reason for above assign is

To allocate memory to the created list where actually now you can store values.

Hope it helps you

Regards

Nived N :robot:

Happy Automation :slight_smile::slight_smile::slight_smile:

1 Like

Thanks Nived…

1 Like