Iteration through lists and maps
Posted: Wed Aug 15, 2012 9:35 pm
Hi,
to iterate through lists or maps, we doIf the list variable has a long name, it would be very convenient to have a syntax like
I know we have the With statement, but it cannot be nested into another With statement. Of course, we can assign the MyList() afterwards e.g. with
but this requires another line of code.
Best regards
Uwe
to iterate through lists or maps, we do
Code: Select all
ForEach MyList()
;here you must access the item with prefix MyList()
Next
Code: Select all
ForEach i In MyList()
;from here you can access the list item just with the prefix i
Next
Code: Select all
*i.MyStructure = MyList()
Best regards
Uwe