Thanks again Tofro, it works quite well but only one way and not exactly what I am after. The commands in the daughter BASIC, all default to scr #2 which is ok for adding a line or more to the daughter BASIC. However I want to be able to get line back and forth in to the MAIN(send) SBASIC.
I've tried using History and Pipes in various forms but keep get errors. So let me stated exactly what I would like to do.
MAIN SBASIC - Send lines of BASIC to Daughter SBASIC
MAIN SBASIC - Retrieve lines of BASIC from Daughter SBASIC
MAIN SBASIC - Send commands to Daughter SBASIC to run a SBASIC Command or written PROCedure
Daughter SBASIC - Automatically receive lines of BASIC from MAIN SBASIC
Daughter SBASIC - Automatically send lines of BASIC to MAIN SBASIC when requested
Daughter SBASIC - Automatically run a SBASIC Command or written PROCedure when requested from MAIN SBASIC
This works in Daughter SBASIC and shows passing the line from MAIN SBASIC
Code: Select all
110 REPeat loop
120 MERGE Pipe_test
130 LIST 1000 TO
140 PAUSE 75
150 END REPeat
I've tried this in Daughter BASIC but it is difficult to get it to work remotely from MAIN
Code: Select all
220 DEFine PROCedure SendBack (LineNo)
230 OPEN #4, PIPE_ReturnLine
240 LIST #4, LineNo TO LineNo
250 CLOSE #4
260 END DEFine
I've tried using
PIPE and
PRINT #3,a$ & CHR$ {10) in MAIN
and
INPUT #4,b$
as a way to pass a command, but then using TURBO TOOLKIT's COMMAND_LINE and TYPE_IN in Daughter BASIC to act on any command trips up as they revert to MAIN SBASIC scr#0 and this screws everything up.
Frustrating, as there should be a way to do this.