Caché MultiValue Basic Reference
ECHO
[Home] [Back] [Next]
InterSystems: The power behind what matters   
Class Reference   
Search:    

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
See Also