What is wrong with this?
BlitzMax Forums/BlitzMax Programming/What is wrong with this?
| ||
I have this little piece of code which should loop through a TMap object :For gad:TGadget = EachIn gmap.Values() FreeGadget(gad) Next I get an error while building : Identifier 'gad' not found. (I'm using superstrict mode) This should work, right? :-( |
| ||
if your using strict you will need to: for local gad:TGadget = eachin gmap.values() and all ways to a null check as well |
| ||
heh... Duh!! Thanks... :-D ...must have spent too long in front of the keyboard today... |