I am running FB 1-06.0 on a Windows 7 OS. The code below seems to work, and returns with a return code of 0 (no errors). This should NOT BE as COM 0 simply doesn't exist on Windows. Is this an accidental holdover from Linux?
If I un-comment the second "OPEN" in the code below, the program throws Error Code 2, "File not found signal", which is the same response as what happens if COM1 is already open. Could COM0 be mapping to COM1 on Windows 7?
Does anyone else have this same behavior?
Dan
Code: Select all
#lang "qb"
CLOSE
OPEN "COM0: 300,N,8,1,ME,CS0,DS0,RS" FOR OUTPUT AS #1
PRINT #1, "Hello World."
'OPEN "COM1: 300,N,8,1,ME,CS0,DS0,RS" FOR OUTPUT AS #2
CLOSE
SLEEP