ComboBox:cText problem
Publicado: Lun Ene 03, 2022 11:45 pm
Hi,
After selecting an item, TComboBox:cText does not have the correct value.
This will happen if you use csDROPDOWN.
I have attached a project with the example.
troubleshooter: (Are there any different alternatives?)
After selecting an item, TComboBox:cText does not have the correct value.
This will happen if you use csDROPDOWN.
I have attached a project with the example.
troubleshooter: (Are there any different alternatives?)
Código: Seleccionar todo
METHOD CbxCloseUp( oSender ) CLASS TForm1
::LOADFILES(.t.)
RETURN Nil
//------------------------------------------------------------------------------
METHOD LOADFILES( lIndex ) CLASS TForm1
if lIndex .and. ::oCbx:nIndex > 0
::oCbx:cText:=::oCbx:aItems[::oCbx:nIndex]
endif
::oLabel1:cText:=::oCbx:cText
RETURN NIL
METHOD CbxKeyDown( oSender, nKey, nFlags ) CLASS TForm1
if nKey = VK_RETURN
::LOADFILES(.f.)
return 0
endif
RETURN Nil