Microsoft KB Archive/82292

= Example PWB Macro That Works Similar to QuickC DEL Key =

Article ID: 82292

Article Last Modified on 10/23/2003

-

APPLIES TO


 * Microsoft Programmer's Workbench for MS-DOS 1.0
 * Microsoft Programmer's Workbench for MS-DOS 1.1
 * Microsoft Programmer's Workbench for MS-DOS 2.0
 * Microsoft Programmer's Workbench for OS/2 1.0
 * Microsoft Programmer's Workbench for OS/2 1.1

-



This article was previously published under Q82292



The Programmer's WorkBench (PWB), which ships with many Microsoft languages, has the ability to use user defined macros. This feature allows it to emulate some of the keystrokes of other editors.

The following sample macro and key assignment for PWB to emulate the QuickC editor's DEL key. If the DEL key is pressed when the cursor is at the end of a line, the following line will be moved to the current line.

Place the following macro after the [PWB] tag in the TOOLS.INI file.

Sample Macro
;Macro to delete like QC

QCdelete:= savecur -> endline meta begline ->nextline restcur left  \ ->noleft right ->nextline :>noleft delete => :>nextline  \ down meta begline emacscdel

QCdelete:del

Additional query words: kbinf 1.00 1.10 2.00

Keywords: kb16bitonly KB82292

-

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

© Microsoft Corporation. All rights reserved.