SourcePoint Intel Help

Table of Contents

gets

Read a string from the user via the Command window.

Syntax

[result =] gets(string)

Where:

result

specifies a debug variable to which the function return value is assigned. If result is not specified, the return value is displayed on the next line of the screen.

string

is an nstring variable to receive the string read.

Discussion

The gets function reads a string from the Command window. The string is stored in the first argument specified and is also the return value of the function.

Example

Command input:

define nstring strInput

gets(strInput) ย ย ย ย ย ย ย ย ย // user types a line of text

Result:

this is a line of text

Related Topics: