Prints a value as text on the status line.
ECHO(val)
val |
- |
A string, series or scalar. The value to display. |
A string.
echo("hi")
prints 'hi' on the status line.
W1: 10..20
echo(strcat("MIN W1: ", strnum(min(W1))))
prints MIN W1: 10.0 on the status line.
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.
The ECHO function is useful for debugging and testing SPL functions. Local variables can be verified via the status line. 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.