System Debug Reference Manual (32650-90888)
Chapter 10 451
System Debug Standard Functions
func strinput
func strinput
Prompts on the input device for user input and returns the user input line as a string.
Syntax
strinput (
prompt
)
Formal Declaration
strinput:str (
prompt
:str)
Parameters
prompt
The prompt string to be displayed.
Examples
$nmdebug > wl strinput("input a number>")
input a number > 1234
1234
Prompt the user for a number and write it back.
$nmdebug > var n bin(strinput("input a number>"))
input a number > 1+3
Prompt the user for a number, convert the input string to a number, and assign it to the
variable named n.
Limitations, Restrictions
If STRINPUT is issued in a job (for example, through the HPDEBUG intrinsic command
string), an error is displayed, and Debug returns to the caller.
func strins
String insert. Returns a string after inserting another string into the source string.
Syntax
strins (
insert source position
)
Formal Declaration
strins:str (
insert
:str
source
:str
position
:u16)