For/Eachin/Next question

BlitzMax Forums/BlitzMax Programming/For/Eachin/Next question

rdodson41(Posted 2006) [#1]
In my GNet program, I have something like this:
For Local obj:TGNetObject = Eachin GNetObjects(host)
    '
    'blah blah
    '
Next

GNetObjects() returns a TList obviously. But is it getting called once at the beginning of the loop, or called every time through the loop? Any help appreciated.


N(Posted 2006) [#2]
It's getting called once.


Beaker(Posted 2006) [#3]
Just once.