- Local
- ---------------------
- Different
to basic
-
-
- Local works just
like BBC Basic.
-
- However, in WimpBasic, all variables must be
defined, either in the
- variables section of the program, or as local,
in the routine. When a
- routine exits, the local variables are lost.
-
- Local variables can not be accessed by sub procedures
or functions.
-
- Example:
- List of variables. Make things private to function
or procedure.
- Local var1%,var2%,var3%
-
- Data pointer on stack.
Only a Local
Error should come after this.
- Local Data
-
- Save error control status on stack. Must be last
Local statement.
- Local Error
-