For each reversed

Hello guys,

Have you maybe any idea how to do reversed for each?
I want to iterate from the last to the first.
So I am starting from postion 360 and counting to 1.

Is this possble?

Best regards,

Hello.

With arrays you can use .Reverse()
For each item In arrayvar.Reverse

For data table, you just need to use a generic For each activity then add .AsEnumerable and change the Argument type to DataRow
For each row In dt1.AsEnumerable.Reverse

Regards.

4 Likes