strict question

BlitzMax Forums/BlitzMax Beginners Area/strict question

mudcat(Posted 2005) [#1]
I'm using strict and I get a complie error "identifier 'a' not found"
in this
Function updateall()
		For a:Tship=EachIn list
			a.update
		Next
End Function


Could someone explain why?
Thanks,
mudcat


Perturbatio(Posted 2005) [#2]
you need to declare the variable:
Function updateall()
	Local a:TShip
		For a:Tship=EachIn list
			a.update
		Next
End Function
or
Function updateall()
		For Local a:TShip=EachIn list
			a.update
		Next
End Function



mudcat(Posted 2005) [#3]
Wow that was a fast reply..Thank You.
I tried local in front of for...didn't work..DOOh.


Thanks for the help,
mudcat