On Tue, 7 Dec 2004 01:25:43 -0000, P Witte <[EMAIL PROTECTED]> wrote:

 wrote:

If you mean what channels are assigned to pre-opened channels on the
stack,
I seem to recall that they are #0 = stdin, #1 = stdout and #3 = error.

Ooops! #2 = error, not #3

Of course in SBasic you dont have to compile it first, thus the program:

100 REMark test pipe
110 :
120 REPeat l
130  IF EOF(#0): EXIT l
140  INPUT#0; l$
150  PRINT#1; l$
160 END REPeat l
170 PRINT#2; CMD$
180 BEEP 2,2
190 QUIT

Invoked by

    EX "ram1_test_bas", "ram1_test_bas", #1, #2; "This is an error"

would copy the source of the program to channel #1 and "This is an error" on
channel #2



Thanks Per - however, following on from this, please see the new thread - inter-job comms


--
Rich Mellor
RWAP Services
26 Oak Road, Shelfield, Walsall, West Midlands WS4 1RQ

http://www.rwapservices.co.uk/

_______________________________________________
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm

Reply via email to