07-23-2010 08:18 AM
Hello,
I have a container in Staion Globals named StandardTest and I have 16 arrays in it.
Is there a way that I can iterate through the arrays inside StandardTest, using for example a for loop?
Just to be clear I know how to iterate through the variables inside an array, I don't know how to iterate through
the arrays inside the container.
I need to write something like this:
for (each array in StandardTest)
for(each element inside the array)
//Do Something
end
end
Thanks for your help,
Naeemeh
07-23-2010 09:18 AM
Naeemeh,
you are in fact looking for something like this:
Step.Result.ReportText = Str(Locals.MyCont.GetNthSubProperty("",<itemindex_in_container>,0).GetValNumber("",0))
Please note that this expression is not fail-save!
Additionally, the datatype does not match an array, but is a numeric in this example. So your use-case is a bit more difficult. But i hope this "Little nudge out of the door" is enough for you to find the solution....
Norbert