Skip to main content

This is documentation for Caché & Ensemble.

For information on converting to InterSystems IRIS, see the InterSystems IRIS Adoption Guide and the InterSystems IRIS In-Place Conversion Guide, both available on the WRC Distributions page (login required).

Previous sectionNext section

ECHO

Suppresses user input display on the screen.

Synopsis

ECHO {OFF | ON}

ECHO {expression}

Arguments

expression A MVBasic expression that resolves to a boolean value, either 0 (off) or 1 (on). You can also specify these values using the keywords OFF and ON. The default is 1.

Description

The ECHO statement suppresses or allows the display of input characters on the terminal screen. If set to OFF, or 0, echoing of user input on the terminal screen is suppressed. If set to ON, or 1, user input is echoed on the terminal screen. One common use for ECHO is when entering a password, using the INPUT statement. ECHO OFF suppresses display of the input password; the password is written to the INPUT variable.

The ECHO statement suppresses screen display of user input. The HUSH statement suppresses All screen display.

Examples

The following example illustrates the use of the ECHO statement:

PRINT "Type your username"
INPUT uname
ECHO OFF
PRINT "Type your password"
INPUT pword
ECHO ON
Copy code to clipboard

See Also

FeedbackOpens in a new window