IBP
Prompts for and accepts input from the terminal keeping the input data a single parameter and retaining embedded blanks.
Syntax
IBP{char{bufferRef}}
Syntax Elements
char An optional prompt character. If included, it remains in effect until reset with an IBN, IBP, IN, IP or PROMPT command.
If char is not included, it defaults to the last prompt character specified or to colon (:) if the Proc was invoked from TCL.
bufferRef A direct or indirect reference to a buffer or select register where the input data is to be placed. The prompt character char is required if a reference is specified.
Operation
The IBP command functions the same as the IP command except that the input string is placed in the buffer as a single parameter and all blanks remain intact.
Use the IP command if you want leading and trailing blanks removed and embedded blanks replaced with single attribute marks.
IBP and IBPc place input data in the active input buffer, replacing the parameter pointed to by the buffer pointer.
IBPcr places input data in the buffer or select register specified by r.
Pressing RETURN only in response to the input prompt creates a null parameter.
The input buffer pointer does not change position after an IBP command.
Note
The IBP command does not read stacked input the way an INPUT statement in DataBasic does. All input commands in Proc ignore stacked data.
Example 1
Command Input |
PIB Before |
PIB After |
---|---|---|
|
|
|
Example 2
Command Input |
PIB Before |
PIB After |
---|---|---|
|
|
|
Example 3
Command Input |
PIB Before |
PIB After |
---|---|---|
|
|
|
Example 4
Command Input |
File Buffer 1 Before |
File Buffer 1 After |
---|---|---|
|
|
|
Example 5
Command Input |
File Buffer 2 Before |
File Buffer 2 After |
---|---|---|
|
|
|