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....