For each reversed

datatable

#1

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,


#2

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.