HPlogo System Debug Reference Manual: HP 3000 MPE/iX Computer Systems > Chapter 8 System Debug Standard Functions

func strinput

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

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.

Feedback to webmaster