Programmer's WorkBench (pwb.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Prompt Macro Example
 Description                               Up Contents Index Back
─────Programmer's WorkBench─────────────────────────────────────────────────
 
     With the following macro, PWB prompts for a Help topic:
 
          QueryHelp := Arg "Help Topic to Find:" Prompt -> Pwbhelp
          QueryHelp : Ctrl+Q
 
     When you press CTRL+Q, PWB displays a dialog box with the string
     'Help Topic to Find:' as the title and waits for a response. PWB
     passes your response to the Pwbhelp function as if the command 'Arg
     <textarg> Pwbhelp' had been executed. If you cancel the dialog box,
     Prompt returns false and the macro conditional '->' terminates the
     macro without executing Pwbhelp.
 
     If you have loaded the PWBHELP extension, you can try this macro
     now:
 
       1. Place the cursor on the first 'QueryHelp' line above and
          execute the Assign function («assign»).
 
       2. Place the cursor on the line with 'Ctrl+Q' above and execute
          the Assign function again («assign»).
 
       3. Press Ctrl+Q to test the macro.
 
          If you enter a topic in the dialog box and PWB finds the
          topic, you can return to this screen by executing
          _pwbhelp_back («_pwbhelp_back»).
 
     If you want to use this macro permanently, copy the lines above
     into the [PWB] section of your TOOLS.INI file.
 
     See
 
     Writing PWB Macros
                                    -♦-