The opposite of lister new is the lister close command, which allows
you to close a single lister, or all listers.
To close a single lister, you need to know it's handle.
An example:
/* ListerClose.dopus5 */
options results
address 'DOPUS.1'
dopus front
lister new /* Open a new lister */
handle = result /* Store it's handle */
address command wait 2 /* Wait 2 seconds */
lister close handle /* Close the lister */
exit
Or, alternatively, you can close all listers by substituting the word ALL
instead of a handle.
/* ListerClose2.dopus5 */
options results
address 'DOPUS.1'
dopus front
lister new
"lister new 50/50/200/200"
"lister new 100/100/200/200"
"lister new 200/200/200/200"
dopus request '"Now to close them all" OK'
lister close all
dopus back
exit
|