>>George,
>>
>>I guess you can put the code for enabling/disabling the button in the lostfocus event of the list, counting how many items were selected.
>>
>>Hugo
>
>Hugo -
>
>The users want to see the button become enabled/disabled before they leave the list (as they select/unselect items in the list).
>
>- George
You might try this:
Set up a string container property like:
lcCurrentlySelected="" && Null
In the click event of the list box, loop through
lnNumberSelected=0
for c=1 to this.listcount
if this.selectedid(c)
lnNumberSelected=lnNumberSelected+1
if lnNumberSelected>1
exit
endif
endif
endfor
thisform.MyCommand.Enabled= lnNumberSelected>1
Imagination is more important than knowledge