Page 1 of 1

xBrowse questions from newbie

Posted: Fri Apr 26, 2019 3:43 pm
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

Re: xBrowse questions from newbie

Posted: Fri Apr 26, 2019 4:49 pm
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

Re: xBrowse questions from newbie

Posted: Fri Apr 26, 2019 6:52 pm
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

Re: xBrowse questions from newbie

Posted: Sat Apr 27, 2019 2:34 am
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

Re: xBrowse questions from newbie

Posted: Wed May 01, 2019 6:18 pm
by reds
Many thanks all,now sorted
Regards
Peter