Microsoft KB Archive/20520

= Using "LPT1: PROMPT", Draft Character Width Differs from Best =

Article ID: 20520

Article Last Modified on 8/16/2005

-

APPLIES TO


 * Microsoft QuickBasic Compiler for Macintosh 1.0
 * Microsoft QuickBasic Compiler for Macintosh 1.0
 * Microsoft QuickBasic Compiler for Macintosh 1.0
 * Microsoft BASIC Compiler 6.0b
 * Microsoft BASIC Interpreter 3.0 for Macintosh
 * Microsoft BASIC Interpreter 2.0
 * Microsoft BASIC Interpreter 2.1 for Macintosh

-



This article was previously published under Q20520



SUMMARY
The information below applies to the following products:


 * 1) Microsoft QuickBASIC Compiler version 1.00 1.00a 1.00b for the Apple Macintosh
 * 2) Microsoft BASIC Compiler version 1.00 for the Apple Macintosh
 * 3) Microsoft BASIC Interpreter versions 2.00, 2.10, and 3.00 the Apple Macintosh

When you OPEN "LPT1:PROMPT" FOR OUTPUT AS #n, the spacing of the characters using Draft mode differs from that of Faster and Best modes. The spacing difference occurs because when you select Draft mode, the ImageWriter printer driver supplied by Apple lines up the letters in the same place as they appear in Faster or Best quality modes. Since M's and W's are narrower in Draft mode, a space will follow them.

To demonstrate this behavior, run the following example twice, the first time choosing Faster or Best from the dialog box, and the second time choosing Draft mode: OPEN "LPT1:PROMPT" FOR OUTPUT AS #1 PRINT #1,"Note the spacing of the letters in Draft:" PRINT #1,"M.M.m.m.W.W.w.w.i.x.1234567890" CLOSE #1 (In the version 2.30 ImageWriter driver that comes with Finder version 5.3, the higher quality modes are called Faster and Best. The higher quality modes were called Standard and High in the older ImageWriter driver that came with version 4.1 of the Finder.)

Additional query words: BasicCom MQuickB

Keywords: KB20520

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.