if ($did(46,0).sel) { .did -b protect 49 }

This will disable the button if nothing is selected in the listbox. Isn't that the opposite of what you want? Also, if you reload a .txt by overwriting the listbox (and not by appending to it), no line will be selected after the file is reloaded, so you can just disable the button without checking anything.

Edit: SladeKraven beat me to it :tongue:

Last edited by qwerty; 11/05/06 05:40 PM.

/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com