DOCUMENT:Q63319 31-OCT-1999 [utilities] TITLE :PRB: Unknown Function psrch with Brief Emulation in PWB PRODUCT :Microsoft Programming Utilities PROD/VER:MS-DOS:1.0,1.1; OS/2:1.0,1.1 OPER/SYS: KEYWORDS:kb16bitonly ====================================================================== ------------------------------------------------------------------------------- The information in this article applies to: - Microsoft Programmer's Workbench for MS-DOS, versions 1.0, 1.1 - Microsoft Programmer's Workbench for OS/2, versions 1.0, 1.1 ------------------------------------------------------------------------------- SYMPTOMS ======== When using the Brief emulation feature of the Programmer's WorkBench (PWB) versions 1.0 and 1.1, reinitialization of the TOOLS.INI file will cause a number of unknown functions to appear when you try to use them. In short, most of the unknown functions that may be reported are related to search features such as the psearch switch. The error message associated with this search feature is commonly "Unknown function psrch." CAUSE ===== This error occurs only after you use the Initialize function. The Initialize function discards current macro definitions and rereads the appropriate section of TOOLS.INI. This is not exactly the same as restarting PWB; the Autostart macro is not executed after Initialize. The BRIEF emulation depends on the Autostart macro to define the search functions. RESOLUTION ========== To recover the definition of the missing macros, execute the toggle_re BRIEF emulation macro (CTRL+F6). To avoid having to remember to execute this macro, you can add this to the main section of TOOLS.INI: reinit:=Initialize Autostart reinit:Shift+F8 Or you can define the macros as follows: psrch:=arg arg "String to Search for" prompt ->can psearch => :>can cancel msrch:=arg arg "String to Search for" prompt ->can msearch => :>can cancel qrepl:=arg arg qreplace srchname:="REoff" Additional query words: 1.00 1.10 PWBIss ====================================================================== Keywords : kb16bitonly Technology : kbAudDeveloper kbPWBSearch kbZNotKeyword3 kbPWB100DOS kbPWB110DOS kbPWB100OS2 kbPWB110OS2 Version : MS-DOS:1.0,1.1; OS/2:1.0,1.1 ============================================================================= 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 1999.