Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagevb
print tab(40) pos(0) 'prints 40 at position 40 
print "these" tab(pos(0)+5)"words" tab(pos(0)+5)"are";print tab(pos(0)+5)"evenly" tab(pos(0)+5)"spaced"

FUNCTION([parameter [= default] AS type, …]) AS type / END FUNCTION


A function is declared using the function statement. In parentheses, one or more optional parameters to be passed may be declared. The return type of the function may also be declared. If the parameter or return type are not declared, they are assumed to be "dynamic"
Intrinsic types are passed by value (a copy is made). Objects are passed by reference.
Parameters can be of type:

...