Page 1 of 1

@ ... Combobox command problem with Sort

Posted: Wed Aug 11, 2010 8:16 am
by sudip
Hello All,

Following command doesn't work:

Code: Select all

@ 10, 140 combobox cboExpfrom width 300 sort
It shows following runtime error:

Code: Select all

Date:11/08/2010 Time: 13:37:27
Error: HMG 3.0.34 (2010.05.15)
Sort and ItemSource clauses can't be used simultaneusly. Program Terminated
Called from _DEFINECOMBO(128) 
Called from EXPCOPY(16) 
Called from (b)MAIN(69) 
Called from _DOCONTROLEVENTPROCEDURE(5320) 
Called from EVENTS(1403) 
Called from _DOMESSAGELOOP(0) 
Called from _ACTIVATEWINDOW(4911) 
Called from MAIN(87) 
But the semi-object syntax works:

Code: Select all

      define combobox cboExpfrom
         row 10
         col 140
         width 300
         sort .t.
      end combobox  
Is there any bug in my first command?

Re: @ ... Combobox command problem with Sort

Posted: Wed Aug 11, 2010 12:46 pm
by Rathinagiri
I think the problem may be in i_combobox.ch (in c:\hmg\include folder)

Re: @ ... Combobox command problem with Sort

Posted: Wed Aug 11, 2010 1:34 pm
by gfilatov
Sudip,

Try

Code: Select all

@ 10, 140 combobox cboExpfrom width 300 ;
ITEMSOURCE NIL ; 
VALUESOURCE NIL ;
 sort
Hope that helps :idea:

Re: @ ... Combobox command problem with Sort

Posted: Wed Aug 11, 2010 2:46 pm
by sudip
Hi Grigory,

Thanks a lot :)

Have a very good vacation :D