Common Variables Between Programs
Posted: Mon Feb 28, 2022 10:11 pm
Hi. (Running under ubuntu 20.04)
I'm trying to chain variables between 2 programs in quickbasic:
Program1:
Program 2:
If I run Prog1.bas and it chains to Prog2.bas, It works i.e Prog2 sees the value of YY$.
If I compile both programs, and execute Prog1, Prog2 NEVER sees the variable in YY$ - it's a null.
Can Anyone Help?
Thanks,
M....
I'm trying to chain variables between 2 programs in quickbasic:
Program1:
Code: Select all
' Prog1
COMMON SHARED YY$
YY$ = "Hello20"
LINE INPUT ; "Hit cr "; M$
CHAIN "Prog2"
Code: Select all
' Prog2
COMMON YY$
PRINT "Prog2 Year: ", YY$
LINE INPUT ; "cr", M$
STOP
If I compile both programs, and execute Prog1, Prog2 NEVER sees the variable in YY$ - it's a null.
Can Anyone Help?
Thanks,
M....