Lister Select

back to section start!

 ArcDir 

  The  lister select  command allows you to select or unselect various
entries in a lister according to their name, or a cardinal number that is
allocated due to their position in the lister.

  Example:


 /* ListerSelect.dopus5 */ 
options results
address 'DOPUS.1'
dopus front
lister new "RAM:"             /* Open a new lister with path = RAM: */
handle = result               /* Store it's handle */
lister wait handle            /* Wait until the lister is free */
lister select handle "T" on   /* Select the T: directory */
lister refresh handle         /* Refresh, T: should show as selected */
address command wait 3        /* Wait 3 seconds */
lister select handle "T" off  /* Unselect the T: directory */
lister refresh handle         /* Refresh, T: shouldn't be selected */
address command wait 3        /* Wait 3 seconds */
lister close handle           /* Close the lister */
exit


 /* ListerSelect2.dopus5 */ 
options results
address 'DOPUS.1'
dopus front
lister new "SYS:"             /* Open a new lister with path = SYS: */
handle = result               /* Store it's handle */
lister wait handle            /* Wait until the lister is free */
lister select handle #0 on    /* Select the first entry */
lister refresh handle         /* Refresh, should show as selected */
address command wait 3        /* Wait 3 seconds */
lister select handle #0 off   /* Unselect the first entry */
lister refresh handle         /* Refresh, shouldn't be selected */
address command wait 3        /* Wait 3 seconds */
lister close handle           /* Close the lister */
exit

DOpus PLUS - giving you that bit extra...