none
subs RRS feed

  • Question

  • I read somewhere that subroutines could be called from anywhere in the program. Does that include being called from a subroutine?
    Friday, January 20, 2012 12:42 AM

Answers

  • Yes it can, ie;

    TextWindow.WriteLine("1")
    Sub1() 'First sub, called from the start of the program

    Sub Sub1
      TextWindow.writeline("2")
      Sub2() 'Second sub, called from in the first sub
    EndSub

    Sub Sub2
      TextWindow.WriteLine("3")
    EndSub

    Friday, January 20, 2012 5:37 AM