COMBOBOX WITH Sort

Post Reply
User avatar
Maurizio
Posts: 826
Joined: Mon Oct 10, 2005 1:29 pm
Contact:

COMBOBOX WITH Sort

Post by Maurizio »

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

Re: COMBOBOX WITH Sort

Post by Jack »

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
User avatar
karinha
Posts: 7935
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil
Been thanked: 3 times
Contact:

Re: COMBOBOX WITH Sort

Post by karinha »

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
Post Reply