Static variables

BlitzMax Forums/BlitzMax Beginners Area/Static variables

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

LOL @ this thread...It's not rocket science! |oD

Print Count()
Print Count()
Print Count()

Print i

Print Count()
Print Count()

End

Function Count()
  Global i
  
  i :+ 1
       
  Return i
End Function