merge cells

merge cells

Postby Natter » Sun Mar 12, 2017 2:34 pm

XBrowser is an array.

{ {"AA", "BB"}, ;
{"AA", "BB"}, ;
{date(), date()-1}, ;
{date(), date()-2}, ;
{"CC", "DD"}, ;
{"CC", "DD"} }

The first column should be merged vertically. Is it possible to specify that you need to merge only cells of the array with the text type ?
Natter
 
Posts: 1215
Joined: Mon May 14, 2007 9:49 am

Re: merge cells

Postby nageswaragunupudi » Sun Mar 12, 2017 4:44 pm

You can if you have the latest version of FWH, using oCol:bMergeValue.
Regards

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

Re: merge cells

Postby Natter » Sun Mar 12, 2017 4:51 pm

I'm using version 17.01 How to use bMergeValue in this case ?
Natter
 
Posts: 1215
Joined: Mon May 14, 2007 9:49 am

Re: merge cells

Postby nageswaragunupudi » Sun Mar 12, 2017 5:04 pm

Code: Select all  Expand view
     :aCols[ 1 ]:lMergeVert     := .t.
      :aCols[ 1 ]:bMergeValue    := { || If( ValType( oBrw:aRow[ 1 ] ) == 'C', oBrw:aRow[ 1 ], Str( oBrw:KeyNo ) ) }
 
Regards

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

Re: merge cells

Postby Natter » Sun Mar 12, 2017 5:16 pm

Tried, but got error comparison string value and date
Natter
 
Posts: 1215
Joined: Mon May 14, 2007 9:49 am

Re: merge cells

Postby nageswaragunupudi » Sun Mar 12, 2017 5:19 pm

Natter wrote:Tried, but got error comparison string value and date

If you tried my exact code you will not get the error.
You might have changed my code.

Please note: I never post here any code without first testing, so you can safely trust the code I post in the forums.
Regards

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

Re: merge cells

Postby Natter » Sun Mar 12, 2017 5:34 pm

Excuse me mr.Rao. I wasn't paying attention. Everything works !
Natter
 
Posts: 1215
Joined: Mon May 14, 2007 9:49 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 36 guests