KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q42772: QuickC 2.00 Editor Function: ResetState

Article: Q42772
Product(s): See article
Version(s): 2.00
Operating System(s): MS-DOS
Keyword(s): ENDUSER | editor | mspl13_c
Last Modified: 2-MAY-1989

Question:

Pages 61 and 63 of the "Microsoft QuickC Up and Running" manual
mention a function called "ResetState." What does this function do,
and how is it used?

Response:

The ResetState command is used to cancel prefix tables. A prefix table
is a table used by QuickC to store multiple keystroke editor commands.

ResetState will cancel the functions that have multiple keystrokes,
for example: BegLine, BegPgm, Change, and Endline. The invocation of
these functions always begins with CTRL+K or CTRL+Q; thus, ResetState
is invoked with CTRL+K followed by CTRL+U, CTRL+Q followed by CTRL+U,
or simply CTRL+U.

Example of Use

Suppose that the SetBookMark function was invoked with the intention
of setting bookmark 0. This keystroke combination would be CTRL+K
followed by 0. There are two methods of completing this command after
having pressed CTRL+K. The 0 key could be used to set the bookmark, or
CTRL+U could be used to cancel the SetBookMark function.

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.