"Bad File Name" OPENing "COM1: " with 1.5 Stop Bits (39187)






This article was previously published under Q39187

SUMMARY

The option for 1.5 stop bits is not supported in any version of QuickBasic (1.00, 1.02, 2.00, 2.01, 3.00, 4.00, 4.00b, or 4.50) or in Microsoft Basic Compiler version 6.00 or 6.00b for MS-DOS and MS OS/2. However, 1.5 stop bits is supported in Microsoft Basic Professional Development System (PDS) versions 7.00 and 7.10.

In QuickBasic, if you try to open the serial communications port using 1.5 Stop Bits, you will get a "Bad file name" error when you run the program in the QB.EXE editor. This error will not occur with 1.5 stop bits in Basic PDS 7.00 and 7.10.

The following similar error message is returned when you run an .EXE file compiled with the BC.EXE environment that comes with QuickBasic:
BAD FILE NAME in module $$$ at address xxx:xx

MORE INFORMATION

The communications option for 1.5 stop bits is supported by GW-Basic versions 3.20, 3.22, and 3.23.

The following is a code example:
   OPEN "COM1:1200,N,8,1.5" FOR RANDOM AS #1
				

Modification Type: Minor Last Reviewed: 1/8/2003
Keywords: KB39187