global.bmx 195 B

123456789101112
  1. Rem
  2. Global defines a variable as Global allowing it be accessed from within Methods and Functions.
  3. End Rem
  4. Global a=20
  5. Function TestGlobal()
  6. print "a="+a
  7. End Function
  8. TestGlobal
  9. print "a="+a