xBrowse questions from newbie

Post Reply
reds
Posts: 50
Joined: Tue May 16, 2017 12:19 pm
Location: North London

xBrowse questions from newbie

Post by reds »

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
User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

Re: xBrowse questions from newbie

Post by Silvio.Falconi »

you can see yunus.prg for create xbrowse or if you post the structure of dbf I can help you to build it
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
User avatar
ukoenig
Posts: 3981
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany
Contact:

Re: xBrowse questions from newbie

Post by ukoenig »

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 )

Image

Code: Select all

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 :D
Last edited by ukoenig on Sat Apr 27, 2019 7:49 am, edited 4 times in total.
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.
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: xBrowse questions from newbie

Post by nageswaragunupudi »

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
reds
Posts: 50
Joined: Tue May 16, 2017 12:19 pm
Location: North London

Re: xBrowse questions from newbie

Post by reds »

Many thanks all,now sorted
Regards
Peter
Post Reply