FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour sample xbrowse with tabs and months
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
sample xbrowse with tabs and months
Posted: Wed Mar 11, 2009 09: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
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: sample xbrowse with tabs and months
Posted: 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 (fw): Select all Collapse
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

Continue the discussion