FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour COMBOBOX WITH Sort
Posts: 842
Joined: Mon Oct 10, 2005 01:29 PM
COMBOBOX WITH Sort
Posted: Fri Mar 24, 2023 09:27 AM

Hello

I have a COMBOBOX ( in a RC file with Sort = Yes )

aTipi := {'Paolo', 'Gianni','Andrea' 'Cesare' }

I set cTipo_Cli = 'Gianni'

REDEFINE COMBOBOX oCom Var cTipo_Cli ITEMS aTipi ID 4009 OF oDlg

but when I open the dialog on the combobox I have 'Cesare' and not 'Gianni'

Thanks

Posts: 300
Joined: Wed Jul 11, 2007 11:06 AM
Re: COMBOBOX WITH Sort
Posted: Fri Mar 24, 2023 11:17 AM

Hi ,

I had the same problem and solved it by adding blank after items in the array .

I found that all items of the array should have the same lenght .

Strange !!

Philippe

Posts: 8523
Joined: Tue Dec 20, 2005 07:36 PM
Re: COMBOBOX WITH Sort
Posted: Fri Mar 24, 2023 02:12 PM

Perhaps, if you are using pellesC, you need to "remove" the SORT variable in the combobox as NO.

Maybe:

ON Change := cTipo_Cli[ oCbx:nAt ]

Regards, saludos.

João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341

Continue the discussion