In my program client client select item from list box. I use command button to move this item in textbox for further use. I tried to disable this porticular item, therefore client will not be able to select again. Code under command Move.click() look like this:
if thisform.lstInputfields.listcount != 0
for icount = 1 to gnFieldcount
if thisform.lstInputfields.selected(icount)
thisform.txtFullname.value =
thisform.lstInputfields.list (icount)
thisform.cmdBackfullname.enabled = .T.
thisform.cmdMovefullname.enabled = .F.
??????????????????????????????????????????????????
?? thisform.lstInputfields.enabled(icount)= .F. ??
??????????????????????????????????????????????????
endif
enfor
endif
if thisform.lstInputfields.listcount != 0
for icount = 1 to gnFieldcount
if thisform.lstInputfields.selected(icount)
thisform.txtFullname.value =
thisform.lstInputfields.list (icount)
thisform.cmdBackfullname.enabled = .T.
thisform.cmdMovefullname.enabled = .F.
??????????????????????????????????????????????????
?? thisform.lstInputfields.enabled(icount)= .F. ??
??????????????????????????????????????????????????
endif
enfor
endif