home *** CD-ROM | disk | FTP | other *** search
/ Game Programming for Teens / GameProgrammingForTeens.iso / Source / chapter03 / demo03-07.bb < prev    next >
Encoding:
Text File  |  2003-04-06  |  247 b   |  14 lines

  1. ;demo03-07.bb - Fixed CallMe() 
  2. Global x
  3. ;call CallMe() function
  4. CallMe() 
  5.  
  6. ;concatenate "x is equal to" and the variable x
  7. Print "x is equal to " + x 
  8. WaitKey
  9.  
  10. ;FUNCTION CALLME()
  11. ;sets x to 314
  12. Function CallMe()
  13.     x = 314
  14. End Function