For loop is not reading my dynamic variable name as a an array but a string

image

Trying to let the forloop to loop an array thats dynamically chosen.

Date1
Date2
Date3

When I run it, it went through each character for “Date1” instead of the items within the Date1 array.

Hi @Jarl, can you try using “+index” instead? As in, (“Date”+index).ToString?

1 Like

Did the solution work, @Jarl? Please mark it as such if it did, because it’ll help others as well :slight_smile:

It didnt work. The loop is treating it as a string.