DISPLAY Output value of all or a specified variable
<< Click to Display Table of Contents >> Navigation: Robo-FTP User's Guide > Script Programming > Script Commands > All Script Commands > DISPLAY Output value of all or a specified variable |
Syntax: |
DISPLAY |
[ variable ] |
Arguments: |
[ variable ] |
A previously defined variable (optional). |
Options: |
None |
|
This script command is used to display the value of one specified variable or the values of all currently assigned variables. The variable name(s) and associated value(s) are written to the main Robo-FTP console window and to the Script Log file. Both internal variables and user defined variables are displayed.
Consider this example where the DISPLAY command outputs the value of the %lasterror internal variable if a download attempt fails:
RCVFILE "readme.txt"
IFERROR= $ERROR_SUCCESS GOTO continue ;; if no error jump to "continue" label
DISPLAY %lasterror
DASHBOARDMSG "Download failed [" & %lasterror & "]"
When this command is executed without the [ variable ] argument the current value of all variables are displayed. This feature may come in handy when debugging complicated command scripts.
Related command(s): SET, CONSOLEMSG, PRESSANYKEY, LOGMSG, DASHBOARDMSG, LOGNTEVENT, MESSAGEBOX
See also: Interactive Debugging