COMBOBOX WITH Sort

COMBOBOX WITH Sort

Postby Maurizio » Fri Mar 24, 2023 9: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
User avatar
Maurizio
 
Posts: 824
Joined: Mon Oct 10, 2005 1:29 pm

Re: COMBOBOX WITH Sort

Postby Jack » 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
Jack
 
Posts: 288
Joined: Wed Jul 11, 2007 11:06 am

Re: COMBOBOX WITH Sort

Postby karinha » Fri Mar 24, 2023 2: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
User avatar
karinha
 
Posts: 7808
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 60 guests