Microsoft KB Archive/35867

= Printing From FORTRAN with Control Characters =

Article ID: 35867

Article Last Modified on 12/1/2003

-

APPLIES TO


 * Microsoft FORTRAN Compiler 4.0
 * Microsoft FORTRAN Compiler 4.01
 * Microsoft FORTRAN Compiler 4.1
 * Microsoft FORTRAN Compiler 5.0
 * Microsoft FORTRAN Compiler 5.1
 * Microsoft FORTRAN Compiler 4.1
 * Microsoft FORTRAN Compiler 5.0
 * Microsoft FORTRAN Compiler 5.1
 * Microsoft FORTRAN PowerStation 1.0 Standard Edition
 * Microsoft Fortran PowerStation 1.0a for MS-DOS
 * Microsoft FORTRAN PowerStation 32
 * Microsoft FORTRAN PowerStation 32

-



This article was previously published under Q35867



SUMMARY
In Microsoft FORTRAN, an application can send control characters directly to a printer with out printing them by using the CHAR intrinsic function.



MORE INFORMATION
The following code example prints the word &quot;Hello,&quot; sends a form feed character (ASCII 12) to the printer, then prints the word &quot;World.&quot;

Sample Code
C Compiler options required: None

OPEN(6, FILE = 'LPT1', STATUS = 'OLD') WRITE(6, *) 'HELLO' WRITE(6, *) CHAR(12) WRITE(6, *) 'WORLD' END

Additional query words: kbinf 1.00 4.00 4.01 4.10 5.00 5.10

Keywords: kblangfortran KB35867

-

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

© Microsoft Corporation. All rights reserved.