FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Empty xBrowse
Posts: 363
Joined: Wed Feb 15, 2006 02:06 PM
Empty xBrowse
Posted: Fri Aug 07, 2009 03: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

Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: Empty xBrowse
Posted: Sun Aug 09, 2009 10:39 PM

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

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 363
Joined: Wed Feb 15, 2006 02:06 PM
Re: Empty xBrowse
Posted: Mon Aug 10, 2009 07: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

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Empty xBrowse
Posted: Mon Aug 10, 2009 09:04 AM

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

Regards



G. N. Rao.

Hyderabad, India
Posts: 363
Joined: Wed Feb 15, 2006 02:06 PM
Re: Empty xBrowse
Posted: Mon Aug 10, 2009 09:22 AM

Works a treat - Thank you for your help

Continue the discussion