none
Local Variables RRS feed

  • Question

  • Hi everyone,

    I have created some variables in a subroutine which are local to that subroutine is it possible to pass these variables to another subroutine or do they have to be global?

    Thanks.

    Friday, September 16, 2011 8:36 PM

Answers

  • All variables in SmallBasic are global, therefore they can and will be shared between subroutines.
    • Marked as answer by Kirkkaf Friday, September 16, 2011 9:56 PM
    Friday, September 16, 2011 8:51 PM
    Moderator

All replies

  • All variables in SmallBasic are global, therefore they can and will be shared between subroutines.
    • Marked as answer by Kirkkaf Friday, September 16, 2011 9:56 PM
    Friday, September 16, 2011 8:51 PM
    Moderator
  • Oh right I think the problem was I didn't run the subroutine before trying to access the variable.
    Friday, September 16, 2011 9:56 PM