How to initialize List of Sting in UiPath APPS?
How to initialize Array of Sting in UiPath APPS?
How to initialize List of Sting in UiPath APPS?
How to initialize Array of Sting in UiPath APPS?
Array - arrays of primitive data types or complex objects. For example:
Array of strings : New String() {"Hello", "World"}
Array of AppsFile: New AppsFile() { new AppsFile("Url1"), new AppsFile("Url2")}
List - for example:
List of strings : New List(Of String) From {"string 1", "string 2", "string 3"}
• List of String :
CreateList(“A”,“B”,“C”) or CreateList() for empty.
• Array of String :
Apps uses lists; for array in Studio:
new String() {“A”,“B”,“C”} or new String() {} for empty.
If helpful, mark as solution. Happy automation with UiPath
List of String:
New List(Of String) From {"Item1", "Item2"}
or empty: New List(Of String)
Array of String:
{"Item1", "Item2"}
or empty: {}
Use List when you need a dynamic collection; use Array when the size is fixed.
In UiPath Apps, a List or Array of String is created by defining a Text variable with Is Array enabled and initializing it using JSON format like [“A”,“B”,“C”].
If solutions help you please mark as solution so it’s help other too and if you have any doubts please let us know
Thanks
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.