HPlogo System Debug Reference Manual > Chapter 10 System Debug Standard Functions

func strinput

MPE documents

Complete PDF
Table of Contents
Index

E0201 Edition 4 ♥
E0300 Edition 3
E0692 Edition 3

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 strextract


func strins