ECHO

Purpose:

Prints a value as text on the status line.

Syntax:

ECHO(val)

val

-

A string, series or scalar. The value to display.

Returns:

A string.

Example:

echo("hi")

 

prints 'hi' on the status line.

Example:

W1: 10..20

echo(strcat("MIN W1: ", strnum(min(W1))))

 

prints MIN W1: 10.0 on the status line.

Example:

printf("Min val: %2.2f, Max Val: %2.2f", min, max)

 

prints 'Min val: x, Max val: y, where x and y evaluate to the minimum and maximum values of the current Window. Note that echo is not needed here since printf returns a string.

Remarks:

The ECHO function is useful for debugging and testing SPL functions. Local variables can be verified via the status line. The WAITKEY can be used to suspend the execution of the SPL routine in order to verify results.

 

See DISP to display a value in a pop-up box.

See Also:

DISP

MESSAGE

PRINTF

SPRINTF

VIEWTEXT