See the example below:
The ComboBox shows the "AA" element instead of "aa".
I corrected this with:
But I imagine that in a next version of FWH is possible to modify the ComboBox class to identify the correct position case-sensitive.
Thanks,
#include "FiveWin.ch"
Function Main()
local oDlg, oCbx
local mItem := {"AA","BB","CC","aa","bb","cc"}
local cItem := "aa"
DEFINE DIALOG oDlg FROM 10,10 TO 20,50 TITLE "Item selecionado: "+cItem
@ 0.5, 1 COMBOBOX oCbx VAR cItem STYLE CBS_DROPDOWN ITEMS mItem ON CHANGE oDlg:SetText( "Item selecionado: "+cItem )
ACTIVATE DIALOG oDlg CENTERED
Return nilThe ComboBox shows the "AA" element instead of "aa".
I corrected this with:
ACTIVATE DIALOG oDlg CENTERED ON INIT oCbx:Select(aScan(mItem,cItem))But I imagine that in a next version of FWH is possible to modify the ComboBox class to identify the correct position case-sensitive.
Thanks,
Oscar Ribeiro
OASyS Informática
Fwh18.02 + xHarbour 1.2.3 + Bcc72
OASyS Informática
Fwh18.02 + xHarbour 1.2.3 + Bcc72