FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour xBrowse questions from newbie
Posts: 50
Joined: Tue May 16, 2017 12:19 PM
xBrowse questions from newbie
Posted: Fri Apr 26, 2019 03:43 PM

Just starting to use FW to convert an old DOS program and have a couple of initial questions on xBrowse

Is there a way of splitting the column headers over two rows

e.g. "Stock Code" & "Cost Price"

to display as headers
Stock Cost
Code Price

I would also like to display entries for logical fields as "Y" or "N"

Many thanks
Peter

Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: xBrowse questions from newbie
Posted: Fri Apr 26, 2019 04:49 PM

you can see yunus.prg for create xbrowse or if you post the structure of dbf I can help you to build it

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: xBrowse questions from newbie
Posted: Fri Apr 26, 2019 06:52 PM
to answer Your questions :

Is there a way of splitting the column headers over two rows
e.g. "Stock Code" & "Cost Price"
to display as headers
Stock Cost
Code Price

I would also like to display entries for logical fields as "Y" or "N"


syntax-sample :
( completed with header-splitting ( next post from Mr. Rao ) and shows
the different results of logical field-syntax )



Code (fw): Select all Collapse
HEADERS "Recno()", "  Last" + CRLF + "( Index )", "First", "Age", "HireDate", "Married" 

WITH OBJECT oBrw
     // header linefeed
     :nHeaderLines := 2

     // images for YES / NO
     :Married:SetCheck( { c_path1 + "Checkon.bmp", c_path1 + "Checkoff.bmp" }, EDIT_GET )       
     // or a checkbox
     :Married:SetCheck()   
     
     // group-header 
     :SetGroupHeader( "Name", 1, 3 ) // 'Recno()', 'FIRST', 'LAST'
     :SetGroupHeader( "Data", 4, 6 ) // 'AGE', 'HIREDATE', 'MARRIED'

     :CreateFromCode()
END


regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: xBrowse questions from newbie
Posted: Sat Apr 27, 2019 02:34 AM
reds wrote:Just starting to use FW to convert an old DOS program and have a couple of initial questions on xBrowse

Is there a way of splitting the column headers over two rows

e.g. "Stock Code" & "Cost Price"

to display as headers
Stock Cost
Code Price


I would also like to display entries for logical fields as "Y" or "N"

Many thanks
Peter


Specify the header as "Stock Code" + CRLF + "Cost Price"

Specify
oBrw:nHeaderLines := 2
Regards



G. N. Rao.

Hyderabad, India
Posts: 50
Joined: Tue May 16, 2017 12:19 PM
Re: xBrowse questions from newbie
Posted: Wed May 01, 2019 06:18 PM

Many thanks all,now sorted
Regards
Peter

Continue the discussion