Arg

Key

ALT+A

Arg

Begin an argument to a function or begin a selection.

After you execute Arg, PWB displays Arg[1] on the status bar. Each time you execute Arg, PWB increments the Arg count.

PWB functions perform variations of their action depending on the Arg count and the “Meta state.” You can use the Meta and Arg function prefixes in any order. See: Meta.

Examples

·To select text or create a function argument:

1.Execute Arg (ALT+A).

2.Execute a cursor-movement function.

Or hold down the SHIFT key and click the left mouse button.

PWB creates a stream, box, or line selection based on the current selection mode. A selection in each of these modes creates a function argument called “streamarg,” “boxarg,” or “linearg,” respectively.

·To create a text argument:

1.Execute Arg (ALT+A).

2.Type the text of the argument.

When you type the first character of the argument, PWB displays the Text Argument dialog box where you can enter the textarg without modifying your file. The Text Argument dialog box does not have an OK button; instead, you execute the function to which you are passing the text argument. Choose Cancel to save the text and do nothing.

·To “pick up” text from a window:

1.Select the text that you want to use in the Text Argument dialog box.

2.Execute Lasttext (CTRL+O).

PWB copies the selected text into the text argument dialog box.

·To cancel an argument or selection:

Execute Cancel (ESC).

Returns

The return value of Arg cannot be tested.

See

Cancel, Lastselect, Lasttext, Meta, Prompt