Empty xBrowse

Empty xBrowse

Postby PeterHarmes » Fri Aug 07, 2009 3:47 pm

Hi,

I'm converting an old piece of code that used to display transactions from a database for a customer. The dialog used a LISTBOX. When the dialog is opened, i set the blogiclen of the browse to 0 so that no records are displayed untill a valid customer is entered where i would then set a scope on the database and reset the blogiclen.

is there a way of telling xbrowse to not show any records? Currently, i set a scope on the database that i know would never show any data when the xbrowse is initiated. Is there another way of doing this?

Regards,

Pete
PeterHarmes
 
Posts: 363
Joined: Wed Feb 15, 2006 2:06 pm
Location: Oxford, England

Re: Empty xBrowse

Postby James Bott » Sun Aug 09, 2009 10:39 pm

What happens if you just set bLogicLen to zero without the scope?

James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: Empty xBrowse

Postby PeterHarmes » Mon Aug 10, 2009 7:54 am

If i just set blogiclen to 0 i get the whole database - i've also noticed that if i do add bLogiclen, i get a column at the end of the browse with a heading of bLogiclen!!

Pete
PeterHarmes
 
Posts: 363
Joined: Wed Feb 15, 2006 2:06 pm
Location: Oxford, England

Re: Empty xBrowse

Postby nageswaragunupudi » Mon Aug 10, 2009 9:04 am

There is no bLogicLen for XBrowse.
Instead you may use oBrw:bKeyCount := { || 0 }
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10620
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Empty xBrowse

Postby PeterHarmes » Mon Aug 10, 2009 9:22 am

Works a treat - Thank you for your help
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: Enrico Maria Giordano, Google [Bot] and 50 guests