i want to use 2d array in uipath. after i declare my 2d array in variable section, i am trying to initialize like this but i am getting error
{{“”,“”},{“”,“”}}
i want to use 2d array in uipath. after i declare my 2d array in variable section, i am trying to initialize like this but i am getting error
{{“”,“”},{“”,“”}}
Hello @venkat4u,
You can use the following sintax to initialize a 2d array: {({“1”,“2”}),({“3”,“4”})}.
Here is an example
2dArray.xaml (4.6 KB)
Best Regards,
Susana
Thanks for your response.
I will check
Hello @Susana,
thank you so much for your response it is working.
i also want to know if i want to define the size of array in variables panel, how can i ?
i used new string(0)(){} - no validation error.
after that if i try to assign its throwing error
using assing like below
array(0)(0) = “1”
the error is Object null Reference
Thanks for the syntax!! It helped
How do I get the variable type String - all I can see is String (that is supposed to be square brackets - could not work out how to type that in).
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.