decisions re: BASIC and why?

Chat about anything CX16 related that doesn't fit elsewhere
kelli217
Posts: 531
Joined: Sun Jul 05, 2020 11:27 pm

Re: decisions re: BASIC and why?

Post by kelli217 »

rje wrote: Tue Feb 21, 2023 6:27 pm Along the lines of BASIC compatibility, I just tried this on the emulator.

Code: Select all

10 ? "uid: " u
20 ? "uname: " n$

u=400 : n$ = "dave" : run
The result: the variable namespace is cleared out before the BASIC program runs:

Code: Select all

UID  :   0
UNAME:
Is this correct behavior?
Yes. To do what you're attempting, you can use GOTO from immediate mode.
rje
Posts: 1263
Joined: Mon Apr 27, 2020 10:00 pm
Location: Dallas Area

Re: decisions re: BASIC and why?

Post by rje »

GOTO!! Brilliant - thank you!
Post Reply