function variables

Blitz3D Forums/Blitz3D Beginners Area/function variables

Second Chance(Posted 2003) [#1]
What happens to the value of a function variable when the function exits? Does it get reset to 0?


Curtastic(Posted 2003) [#2]
they dont exist outside of the function and are set to 0 when the function starts.

a static variable would keep the value of last time it went inside the function, but blitz doesnt have them. I want them for large projects.


Second Chance(Posted 2003) [#3]
Just what I needed to know, thanks