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 Function
 Macro Example                             Up Contents Index Back
─────Programmer's WorkBench─────────────────────────────────────────────────
 
     The Prompt function displays the Text Argument dialog box where you
     can enter a text argument. You can use this function interactively,
     but because it is mainly useful in macros, it is not assigned to a
     key by default. You usually use Lasttext or Arg to directly enter a
     text argument.
 
     Prompt («prompt»)
          Displays the Text Argument dialog box without a title.
          See: Lasttext
 
     Arg Prompt («arg» «prompt»)
          Uses the text of the current line from the cursor to the end
          of the line as the title.
 
     Arg <textarg> Prompt («arg» <textarg> «prompt»)
          Uses <textarg> as the title.
 
     Arg <boxarg> │ <linearg> │ <streamarg> Prompt
     («arg» <boxarg> │ <linearg> │ <streamarg> «prompt»)
          Uses the selected text as the title. If the selection spans
          more than one line, the title is the first line of the
          selected text.
 
     Returns
 
     True:  Textarg entered; the user chose the OK button.
     False: The dialog box was canceled.
 
     See
 
     Assign
     Customizing PWB with TOOLS.INI
                                    -♦-