FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Anomaly in TxBrowse Multiselect
Posts: 365
Joined: Sat Oct 08, 2005 07:59 PM
Anomaly in TxBrowse Multiselect
Posted: Fri Jul 04, 2008 10:26 AM
If I use a TxBrowse in Multiselect mode, upon startup it starts with the 1st record already selected. Is there any way to start with no registers selected (that is with Len(aSelected)= 0)

To see what I mean, go to \Samples\testxbrw.prg and modify line 486 as follows:
 ACTIVATE WINDOW oChild ON INIT (oBrw:SetFocus() ,; 
                                   MsgInfo(Str(Len(oBrw:aSelected))))

Any suggestion?
Rafael
FWH 8.05 + Harbour
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Anomaly in TxBrowse Multiselect
Posted: Fri Jul 04, 2008 11:54 AM

That has been the behaviour of xbrowse from the very biginning of this class.

Regards



G. N. Rao.

Hyderabad, India
Posts: 365
Joined: Sat Oct 08, 2005 07:59 PM
Anomaly in TxBrowse Multiselect
Posted: Fri Jul 04, 2008 12:14 PM

NageswaraRao:

I may be wrong, but I'd say that in older FWH versions, TxBrowse started with no records selected.

True, if you clicked any record, then you got stuck with at least one record selected. No way to deselect all, unless you used the SelectNone() method.

In my previous version of one of my programs, I used TxBrowse to select the records to print: You clicked the first and the last one and that was it. If you didn't click any, by default, then the whole table was printed. Whith FWH8.5 this behaviour seems to have changed.

Rafael

Continue the discussion