FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour xBrowser syntax
Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
xBrowser syntax
Posted: Mon Sep 16, 2013 06:59 PM

Dear Mr. Rao,
I would like to use xBrowser like this but I don’t remember where to find the right syntax.
XBROWSER cAlias TITLE "RAO-Notes Archiv" ;
SETUP ( oBrw:cFields := {'IP','Absender','Status','Text','Termin','Zeit'})
Would you be so kind to helo me.
Thanks in advance
Otto

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: xBrowser syntax
Posted: Wed Sep 18, 2013 06:03 AM
You can refer to the command in \fwh\include\xbrowse.ch whenever you are in doubt.

I reproduce it here.

#xcommand XBROWSER [<uData>] ;
[ TITLE <cTitle> ] ;
[ <autosort:AUTOSORT> ] ;
[ SETUP <fnSetUp> ] ;
[ COLUMNS <aCols,...> ] ;
[ SELECT <fnSelect> ] ;
[ <fastedit: FASTEDIT> ];
[ VALID <uValid> ] ;

Most clauses are self explanatrory.
I clarify here some clauses:

examples:
#1
COLUMNS "First", "Last", "Age", "Salary"
or
COLUMNS { "first", "Age", "Salary" ... }
or
COLUMNS aColNames

#2.
SETUP fnMySetUp( oBrw ) // optional
within this function you can use oBrw parameter and can set any more actions

#3SELECT ( uSelValue := oBrw:aCols[ 1 ]:Value )

If SELECT clause is used, the dialog shows two buttons <select> and <cancel>. If the user presses select button ( or presses enter or double clicks ) the SELECT function is called.

#4. FASTEDIT. This sets fastedit mode and enables all cells to be editable.

Code (fw): Select all Collapse
XBROWSER cAlias TITLE "RAO-Notes Archiv" ;
COLUMNS 'IP','Absender','Status','Text','Termin','Zeit'
Regards



G. N. Rao.

Hyderabad, India

Continue the discussion