"Bad File Name"; OPEN "COM1: "; 8 Data Bits Must Have No Parity (12027)
This article was previously published under Q12027
SUMMARY
When you use the OPEN "COM" statement with the data bits set to 8 and
parity set to Even or Odd, you will get a "Bad File Name" error. For
example, "Bad File Name" occurs at run time when you open the serial
communications port as follows:
OPEN "COM1:9600,E,8,1" AS 2
This error disappears using 7 data bits, or No (N) parity.
When you specify 8 data bits, you must specify a parity of N. This is
a limitation in the design of QuickBasic versions 1.00, 1.01, 1.02,
2.00, 2.01, 3.00, 4.00, 4.00b, and 4.50; Microsoft Basic Compiler
versions 6.00 and 6.00b for MS-DOS and MS OS/2; and Microsoft Basic
PDS versions 7.00 and 7.10 for MS-DOS and MS OS/2.
Modification Type: |
Minor |
Last Reviewed: |
1/9/2003 |
Keywords: |
KB12027 |
|