Allow pairing keywords "ForEach" and "With"
Posted: Thu Jul 19, 2018 8:28 pm
Working with long variable names for collections and ForEach is extremely verbose:
We can already simplify this with the "With" keyword:
It would be nice if we could combine these together for something even simpler:
Code: Select all
Structure ListStruct
fieldA.s
fieldB.s
EndStructure
Structure SomeStruct
List someLongListName.ListStruct()
EndStructure
someLongVariableName.SomeStruct
ForEach someLongVariableName\someLongListName()
Debug someLongVariableName\someLongListName()\fieldA.s+" "+someLongVariableName\someLongListName()\fieldB.s
Next
Code: Select all
ForEach someLongVariableName\someLongListName()
With someLongVariableName\someLongListName()
Debug \fieldA.s+" "+\fieldB.s
EndWith
Next
Code: Select all
ForEach With someLongVariableName\someLongListName()
Debug \fieldA.s+" "+\fieldB.s
Next