Prompts for and accepts input from the terminal keeping the input data a single parameter and retaining embedded blanks.
IBP{c{r}}
c is an optional prompt character.
If c is used, it remains in effect until reset with a new IBN, IBP, IN, or IP command.
If c is not used, it defaults to the last prompt character specified or to colon (:) if the Proc was invoked from TCL.
r is a direct or indirect reference to a buffer or select register where the input data is to be placed. The prompt character c is required if a reference is specified.
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.
Command Input | PIB Before | PIB After |
---|---|---|
IBP? |
UPDATE^INV ![]() |
UPDATE^INV^3-93 ![]() |
Command Input | PIB Before | PIB After |
---|---|---|
IBP? |
DISP^PO^333 ![]() |
DISP^XXX Y Z^333 ![]() |
Command Input | PIB Before | PIB After |
---|---|---|
IBP? RETURN |
ABC^DEF^GHI ![]() |
ABC^^GHI ![]() |
Command Input | File Buffer 1 Before | File Buffer 1 After |
---|---|---|
IBP:&1.1 |
000 AB-221 |
000 AB-221 |
Command Input | File Buffer 2 Before | File Buffer 2 After |
---|---|---|
IBP:&2.2 |
000 AB-221 |
000 AB-221 |