Add element to array

i want to add an element to array but i don’t know how i can do it.
it’s posible create an array of indefinite size and add values manually?

1 Like

@maxi_bernardo,

Please refer this link where he explained how increase size of array and also how to add element to array

1 Like

Hi @maxi_bernardo,
Refer below code
array_int = new integer(2){1,2}
If you want to add dynamic N number of value then go to list refer below link
https://www.uipath.com/kb-articles/how-to-work-with-a-dynamic-array?hs_amp=true

Regards,
Arivu

1 Like

thanks

@maxi_bernardo

instead of array create List
and u can append using list.append method

2 Likes