I am creating an array of string and have to add selective items (out of total items) in it. I know the count of total items but not the exact items to be added in array. Taking size as count of total items would obviously leave empty elements in array which is not required. On searching vb.net code, I found
Initial declaration: Dim stArray() As Integer
Resizing: ReDim stArray(1)
To keep the existing items in the Array: ReDim Preserve stArray(2)
However, on adding assign activity ReDim stArray(1) is throwing an error.
Please suggest how could I add array of unknown length in UiPath.