FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour How to set index of dbcombo
Posts: 110
Joined: Wed Feb 18, 2009 09:58 AM
How to set index of dbcombo
Posted: Fri Mar 06, 2009 06:59 AM

Hi,
Can some one share the code for how to set index of a dbcombo.After save operation i wand to set
the index to 0 for dbcombo.
thanks in advance
Regards,
Sajith

Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: How to set index of dbcombo
Posted: Fri Mar 06, 2009 03:15 PM

Sajith,

DBCombo does not have an index--internally it holds all the data in two arrays. If you use a DBF as the datasource, then it must be indexed before you call DBCombo. If you want to change the order of the data after the DBCombo has been initialized, try reloading it oDBC:refill(). There may be a noticable delay while it is reloaded if there are a lot of records. Don't forget to reset the order of the DBF before calling the refill() method.

Regards,
James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 110
Joined: Wed Feb 18, 2009 09:58 AM
Re: How to set index of dbcombo
Posted: Sat Mar 07, 2009 06:40 AM

Many thanks for ur reply
Regards,
Sajith :)

Continue the discussion