KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q31495: Macro to Enter Form Feed or Control Characters in Editor

Article: Q31495
Product(s): See article
Version(s): 1.00 | 1.00
Operating System(s): DOS | OS/2
Keyword(s): ENDUSER | tar62237 | mspl13_basic
Last Modified: 1-NOV-1988

The form-feed characters and control characters below can be entered
in a file being edited by the Microsoft Editor.

The following macro inserts a linefeed, (CTRL+L), and a newline, and
binds it to the F6 key. To enter a CTRL+L, use the Graphic assignment
on Page 48 of the "Microsoft Editor User's Guide" when editing your
TOOLS.INI file:

graphic:ctrl+l

FFM:="L" newline   ; Instead of the L shown here, insert a CTRL+L
FFM:F6             ; with the quote function "CTRL+P CTRL+L"

The macro below allows you to enter control key values. The
following line binds "quote" to F5. Quote allows you to enter any key
as input (i.e., control key values, etc). This means if you type "F5"
followed by a "CTRL+X", you will see a "\030" instead of "arg":

quote:F5.

THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Copyright Microsoft Corporation 1986-2002.