FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Listbox refresh question
Posts: 363
Joined: Wed Feb 15, 2006 02:06 PM
Listbox refresh question
Posted: Thu Apr 19, 2007 02:27 PM

Hi,

In my app i am using LISTBOX from a resource file to browse a database. Under DBFCDX i can set a scope and use oBrw:bLogiclen := {|| DBF->(cmxKeyCount())} and the the listbox behaves itself when the vertical thumbnail is dragged. If under SQLRDD, as there isnt a way to find out how many records there are in a scope quickly (or is there?) the listbox display can corrupt until you press home/end or do a refresh - is there a way to repaint the listbox when the thumbnail is dragged?

My cmxKeyCount function is :

func cmxKeyCount(xOrder, cBag)
dbOrderInfo(DBOI_KEYCOUNTRAW, cBag, xOrder)

Hope the above is clear and thanks in advance

Pete

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Listbox refresh question
Posted: Thu Apr 19, 2007 04:52 PM

Peter,

Is there a way that you may issue this SQL sentence:

SELECT COUNT( FieldName ) FROM TableName

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 363
Joined: Wed Feb 15, 2006 02:06 PM
Listbox refresh question
Posted: Fri Apr 20, 2007 07:59 AM

Yes there is, but it can be slow if you are looking at large amounts of data on a large table. I was wondering if there was a way to call a function if the thumbnail was dragged?

Continue the discussion