sample xbrowse with tabs and months

sample xbrowse with tabs and months

Postby Silvio » Wed Mar 11, 2009 9:34 am

I want create a xbrowse with tabs down

with this dbf

codice C 4
Datain D 8
Dataout D 8



on each tabs I want insert the name of the months

and I want index the dbf on that month

I want create only six tabs "May","Jun","Lug","Ago","Sep", "All"

May index from 01-05-09 to 30-05-09
Jun index from 01-06-09 to 30-06-09
....

All index from 01-05-09 to 30-09-09

Have you an sample ?
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Re: sample xbrowse with tabs and months

Postby nageswaragunupudi » Sun Mar 22, 2009 12:48 pm

Mr Sylvio

Use bSetUp parameter ( 4th parameter ) to define your own columns and groups. You can get what you want when you define the groups in your code. Finally bSetUp should evaluate to .T. . Then xbrowse's report method does not add any columns or groups on its own.

In your code, define the group like this:
Code: Select all  Expand view

GROUP ON Left( DToS( FIELD-><your_date_field> ), 6 ) ;
     HEADER Left( CMonth( FIELD-><your_date_field> ), 3 )

 

Make sure your table is indexed or sorted in the date order.
Regards

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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 79 guests