Listbox refresh question

Listbox refresh question

Postby PeterHarmes » Thu Apr 19, 2007 2: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
PeterHarmes
 
Posts: 363
Joined: Wed Feb 15, 2006 2:06 pm
Location: Oxford, England

Postby Antonio Linares » Thu Apr 19, 2007 4: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42078
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby PeterHarmes » Fri Apr 20, 2007 7: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?
PeterHarmes
 
Posts: 363
Joined: Wed Feb 15, 2006 2:06 pm
Location: Oxford, England


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: cmsoft, Natter and 53 guests