xBrowse and lMergeVert

Post Reply
User avatar
Maurizio
Posts: 705
Joined: Mon Oct 10, 2005 1:29 pm
Contact:

xBrowse and lMergeVert

Post by Maurizio »

Hello Rao
I use oCol:lMergeVert and oCol:WorkMergeData() to activate at runtime lMergeVert and it works fine ,
but is it possible to disable for other conditions?

IF oBrw:oRs:Sort) == 'State'
WITH OBJECT oBrw:State
:lMergeVert := .t.
:WorkMergeData()
END
ELSE
// HOW DO YOU RESTORE WITHOUT lMergeVert ???
ENDIF

Regards
Maurizio
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: xBrowse and lMergeVert

Post by nageswaragunupudi »

Code: Select all

// cancellation of vertical merge, if already merged
if oCol:lMergeVert
   oCol:lMergeVert := .f.
   oBrw:Refresh()
endif
 
Regards

G. N. Rao.
Hyderabad, India
User avatar
Maurizio
Posts: 705
Joined: Mon Oct 10, 2005 1:29 pm
Contact:

Re: xBrowse and lMergeVert

Post by Maurizio »

Thanks RAO
it works very well .
is it possible to have a sub total for each merge?

Maurizio
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: xBrowse and lMergeVert

Post by nageswaragunupudi »

Possible, but you need to do more work.
Please search the forums for samples I posted showing subtotals with mergecols.

May I know if you are using ADO with MySql or MSSql or other database?
Regards

G. N. Rao.
Hyderabad, India
User avatar
Maurizio
Posts: 705
Joined: Mon Oct 10, 2005 1:29 pm
Contact:

Re: xBrowse and lMergeVert

Post by Maurizio »

I use ADO
Maurizio
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: xBrowse and lMergeVert

Post by nageswaragunupudi »

Maurizio wrote:I use ADO
Maurizio
It is clear to me that you are using ADO. But with what database? MySQL or MSSQL or Oralce? what database?
I am asking because SQL syntax can vary a little between different databases.
Regards

G. N. Rao.
Hyderabad, India
User avatar
Maurizio
Posts: 705
Joined: Mon Oct 10, 2005 1:29 pm
Contact:

Re: xBrowse and lMergeVert

Post by Maurizio »

I use Mysql
Maurizio
Post Reply