Procedures can return
values to the point in the code from which they were called.
e.g.
' Main
code
...
Test()
Print Result Int
...
' Procedure
definition
Procedure Test()
...
End
Proc(n)
The procedure
Test can change the value of n and return it. This value can then be caught
from the point the procedure was called from using the Result command.
Result
Int/Result Integer contains the returned value if the value
specified was an integer.
Result
Float
contains the returned value if the value specified was an floating
point number.
Result
Str/Result String
contains the returned value if the value specified was a string.