1
QB64 Discussion / Returning from CHAIN Statement
« on: August 12, 2018, 02:23:54 pm »
I'm making another sort of interface in QBASIC, and it keeps running out of memory because it's in DOS. To fix this, I figured I'd separate the SUBs into different BAS/EXE files and just use a CHAIN statement, however, I cannot figure out how to have the secondary program return to the main program without restarting said main program. For example:
Main:
Calc.bas:
Is it possible to have it return to where it was on the main program, and if so, how can I do so?
Main:
Code: QB64: [Select]
- CHAIN "calc.bas"
- lastRan = "Calculator"
- ...
Calc.bas:
Code: QB64: [Select]
Is it possible to have it return to where it was on the main program, and if so, how can I do so?