@ ... Combobox command problem with Sort

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
sudip
Posts: 1456
Joined: Sat Mar 07, 2009 11:52 am
Location: Kolkata, WB, India

@ ... Combobox command problem with Sort

Post 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?
With best regards,
Sudip
User avatar
Rathinagiri
Posts: 5482
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: @ ... Combobox command problem with Sort

Post by Rathinagiri »

I think the problem may be in i_combobox.ch (in c:\hmg\include folder)
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
gfilatov
Posts: 1116
Joined: Fri Aug 01, 2008 5:42 am
Location: Ukraine
Contact:

Re: @ ... Combobox command problem with Sort

Post by gfilatov »

Sudip,

Try

Code: Select all

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

"Everything should be made as simple as possible, but no simpler." Albert Einstein
User avatar
sudip
Posts: 1456
Joined: Sat Mar 07, 2009 11:52 am
Location: Kolkata, WB, India

Re: @ ... Combobox command problem with Sort

Post by sudip »

Hi Grigory,

Thanks a lot :)

Have a very good vacation :D
With best regards,
Sudip
Post Reply