How to set index of dbcombo

How to set index of dbcombo

Postby sajith » Fri Mar 06, 2009 6: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
sajith
 
Posts: 110
Joined: Wed Feb 18, 2009 9:58 am
Location: India

Re: How to set index of dbcombo

Postby James Bott » Fri Mar 06, 2009 3: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
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: How to set index of dbcombo

Postby sajith » Sat Mar 07, 2009 6:40 am

Many thanks for ur reply
Regards,
Sajith :)
sajith
 
Posts: 110
Joined: Wed Feb 18, 2009 9:58 am
Location: India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 71 guests