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
xBrowse questions from newbie
- Silvio.Falconi
- Posts: 4956
- Joined: Thu Oct 18, 2012 7:17 pm
Re: xBrowse questions from newbie
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
Re: xBrowse questions from newbie
to answer Your questions :
( completed with header-splitting ( next post from Mr. Rao ) and shows
the different results of logical field-syntax )
regards
Uwe
syntax-sample :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"
( completed with header-splitting ( next post from Mr. Rao ) and shows
the different results of logical field-syntax )
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
Uwe
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.
i work with FW.
If you have any questions about special functions, maybe i can help.
- nageswaragunupudi
- Posts: 8017
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Contact:
Re: xBrowse questions from newbie
Specify the header as "Stock Code" + CRLF + "Cost Price"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
oBrw:nHeaderLines := 2
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
Re: xBrowse questions from newbie
Many thanks all,now sorted
Regards
Peter
Regards
Peter