How to declare a variable of array of string type with size not fixed. I am using attached way

ListofFiles

Hi @ANAND_GUPTA

Set blank value for the variable ListofFilestoMove = “”

And set the variable type of the ListofFilestoMove as Array of string.

Hope this will works

1 Like

You can declare a variable without specifying size. But to before doing any operation on that array you have to instantiate with the array length. You can do this dynamically within the process if you will get to know the length during processing.
Otherwise, use List which doesn’t need the length to be specified. If you still need the array itself, once you enter all the data, convert the List to Array as lstString.ToArray()

3 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.