xBrowser syntax

xBrowser syntax

Postby Otto » Mon Sep 16, 2013 6: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
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6275
Joined: Fri Oct 07, 2005 7:07 pm

Re: xBrowser syntax

Postby nageswaragunupudi » Wed Sep 18, 2013 6: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: Select all  Expand view
XBROWSER cAlias TITLE "RAO-Notes Archiv" ;
COLUMNS 'IP','Absender','Status','Text','Termin','Zeit'
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10489
Joined: Sun Nov 19, 2006 5:22 am
Location: India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 19 guests