FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Combine xBrowse columns
Guest
Posts: 0
Joined: unknown
Combine xBrowse columns
Posted: Sat Jun 25, 2022 11:02 AM

Hi,

Is it possible to combine xBrowse columns only for specific rows ?

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Combine xBrowse columns
Posted: Sat Jun 25, 2022 03:33 PM
Please try fwh\samples\xbruser.prg.

Regards



G. N. Rao.

Hyderabad, India
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Re: Combine xBrowse columns
Posted: Sat Jun 25, 2022 06:42 PM

Thanks! I completely forgot about this example :(

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Combine xBrowse columns
Posted: Mon Jun 27, 2022 04:52 AM
This is much simpler:

Please try \fwh\samples\xbcelmrg.prg

Regards



G. N. Rao.

Hyderabad, India
Posts: 434
Joined: Wed Jun 06, 2007 02:58 PM
Re: Combine xBrowse columns
Posted: Wed Jun 29, 2022 12:03 PM

xbcelmrg.prg?
from which version?

In 17.09 there is not

FiveWin for xHarbour 24.02 - Feb. 2024 - Embarcadero C++ 7.60 for Win32 Copyright (c) 1993-2023

FWH 64 for Harbour 19.06 (MSVC++) Jun. 2019 - Harbour 3.2.0dev (r1904111533)

Visual Studio 2019 - Pelles C V.8.00.60 (Win64)
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Combine xBrowse columns
Posted: Wed Jun 29, 2022 12:26 PM

version FWH2007 onwards

Regards



G. N. Rao.

Hyderabad, India
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Re: Combine xBrowse columns
Posted: Wed Jun 29, 2022 12:48 PM
xcelmg.prg is a good example! However, the bExtand code block assumes gluing columns starting from the first one.
How do I glue, for example, only 2 and 3 columns ?
Is it possible not to show column separators in one line ?
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Combine xBrowse columns
Posted: Wed Jun 29, 2022 01:01 PM
Code (fw): Select all Collapse
oBrw:aCols[ 2 ]:bExtend := { If( <cond>, 1, 0 ) }


For any column, number of columns returned by bExtend, to the right of the current column are merged with the current column

If aCols[ 3 ]:bMerge returns 3, then columns 3,4,5,6 are merged. ( col 3 to col 3+3 )
If aCols[ 2 ]:bMerge returns 1. columns 2 and 3 are merged ( col 2 to col 2+1 )
Regards



G. N. Rao.

Hyderabad, India
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Re: Combine xBrowse columns
Posted: Wed Jun 29, 2022 01:34 PM

Yes, I understand. Thanks !

Continue the discussion