ScriptBasic:UsersGuide 18

From ScriptBasic
Jump to: navigation, search

[Contents]

18. Functions and Subroutines

[<<<] [>>>]

18.1. Declaration of subroutines and function
18.2. Calling functions and subroutines
18.3. Returning a value
18.4. Local and global variables
18.5. More on local and global variables
18.6. Parameters passed by value and by reference
18.7. ByVal command
18.8. Calling functions indirectly
18.9. GOSUB and RETURN

Most programming languages provide a form for defining code fragments to be used later at several times. These are subroutines and functions. ScriptBasic allows the programmer to define subroutines before or after they are used; to have local variables inside functions and subroutines and allows the functions and subroutines call each other even recursively.


[<<<] [>>>]