Declaring local variables
LOCAL 0
LOCAL 1
LOCAL I%,F#,S$,C&,B!
If called with 1, LOCAL deactivates the implicit local variable declaration. Local variables mut now be declared with LOCAL. LOCAL 0 reactivates the implicit local variable declaration.
LOCAL 1
LOCAL age,name$
input "Age: ",age
input "Name:,name |
If LOCAL is activated and OWBasic finds a not declared local variable, an error message is shown.
|