>Problem is that the documented way the list box is to work is to not allow
>selection of disabled row. Point I tried to make was that current VFP has
>known bug that allows user to up arrow / down arrow onto a disabled row and
>then press {Enter] and have the disabled row selected. I did not keep the
>Microsoft Bug description, but it is available at the MicroSoft site. My
>meager attempt to help was simply to warn you that despite your best
>efforts, you may see disabled row(s) selected. Sorry if I confused you, but
>thought I might save you some heartache in trying to figure out how users
>are able to select disabled row(s).
Following is quick fix:
this.additem("q1")
this.additem("q2")
this.additem("\q3"+space(3))
this.additem("q4")
LPARAMETERS nKeyCode, nShiftAltCtrl
if nKeycode=5 or nKeycode=24
this.tag=this.value
endif
if empty(right(this.value,3))
this.value=this.tag
this.tag=""
endif
Edward Pikman
Independent Consultant