Generating a Nonprinting Character with the CHAR Function (49528)
The information in this article applies to:
- Microsoft FORTRAN Compiler for MS-DOS 4.0
- Microsoft FORTRAN Compiler for MS-DOS 4.01
- Microsoft FORTRAN Compiler for MS-DOS 4.1
- Microsoft FORTRAN Compiler for MS-DOS 5.0
- Microsoft FORTRAN Compiler for MS-DOS 5.1
- Microsoft FORTRAN PowerStation for MS-DOS 1.0
- Microsoft FORTRAN PowerStation for MS-DOS 1.0a
- Microsoft Fortran Powerstation 32 for Windows NT 1.0
- Microsoft Fortran Powerstation 32 for Windows NT 4.0
- Microsoft FORTRAN compiler for OS/2 4.0
- Microsoft FORTRAN compiler for OS/2 4.01
- Microsoft FORTRAN compiler for OS/2 4.1
- Microsoft FORTRAN compiler for OS/2 5.0
- Microsoft FORTRAN compiler for OS/2 5.1
This article was previously published under Q49528 SUMMARY
An application developed in Microsoft FORTRAN can use the CHAR
intrinsic function to create any character in the ASCII character set
including the so-called "control" characters. The CHAR intrinsic
function takes an INTEGER as an argument and returns a CHARACTER.
The following code example sends a nonprinting character, a carriage
return, to the screen.
Sample Code
C Compile options needed: None
WRITE (*, '(1X, A1)') CHAR(13)
END
| Modification Type: | Major | Last Reviewed: | 12/1/2003 |
|---|
| Keywords: | kbLangFortran KB49528 |
|---|
|