CTRL+Z Embedded in Source Truncates BC.EXE Compilation (36576)
The information in this article applies to:
- Microsoft Visual Basic for MS-DOS
- Microsoft QuickBASIC 4.0
- Microsoft QuickBASIC 4.0b
- Microsoft QuickBASIC 4.5
- Microsoft Basic Professional Development System (PDS) for MS-DOS and MS OS/2 7.0
- Microsoft Basic Professional Development System (PDS) for MS-DOS and MS OS/2 7.1
- Microsoft BASIC Compiler for MS-DOS and OS/2 6.0
- Microsoft BASIC Compiler for MS-DOS and OS/2 6.0b
This article was previously published under Q36576 SUMMARY
The QB.EXE editor allows you to embed control characters into a source
file by pressing CTRL+P followed by CTRL+<desired key>. This
information is documented in a table on Page 135 of the "Microsoft
QuickBasic 4.0: Learning and Using" manual for versions 4.0 and 4.0b,
and on Page 204 of the "Microsoft QuickBasic 4.5: Learning to Use"
manual for version 4.5.
When using this technique, do not type CTRL+Z into the source file if
the file is saved as text. For a file saved as text, CTRL+Z marks the
end of the file (EOF) for BC.EXE and other Microsoft compilers. (This
feature is a carryover from the end-of-file standard required for text
files in MS-DOS versions 1.x.) You must save in fast load format for
BC.EXE to accept embedded CTRL+Z characters.
A CTRL+Z byte appears on the screen as a right-arrow symbol. To print
a right-arrow symbol on the screen, use the statement PRINT CHR$(26)
instead of embedding a CTRL+Z in a string constant.
Modification Type: | Minor | Last Reviewed: | 8/16/2005 |
---|
Keywords: | KB36576 |
---|
|