FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour xBrowse fieldname
Posts: 842
Joined: Mon Oct 10, 2005 01:29 PM
xBrowse fieldname
Posted: Thu Oct 14, 2010 10:41 AM

Hello ,

Is it possible in xBrowse have the field name ( not the cHeader) of the column when i click on the header ?

Regards Maurizio

Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: xBrowse fieldname
Posted: Thu Oct 14, 2010 02:34 PM

Maurizio,

The problem is that the data in the column may, or may not, be a field. Only a codeblock is stored in bStrData.

You could try adding the fieldname (in a codeblock) to either bLClickHeader of bRClickHeader. E.G.:

oBrw:aCols:[3]:bLClickHeader:= {|| "Address" }

Regards,
James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 663
Joined: Mon Dec 05, 2005 11:22 PM
Re: xBrowse fieldname
Posted: Thu Oct 14, 2010 03:59 PM

Add it to the column's cargo.

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: xBrowse fieldname
Posted: Tue Oct 19, 2010 10:40 AM
if we create xbrowse with COLUMNS clause, in the recent versions of xbrowse, oCol:cExpr stores the expression.

Example:
Code (fw): Select all Collapse
@ 0,0 XBROWSE oBrw OF oWnd COLUMNS 'CITY', 'SALARY', 'SALARY/AGE' ALIAS 'CUSTOMER'

In this case
oBrw:aCols[1]:cExpr := 'CITY'
oBrw:aCols[2]:cExpr := 'SALARY'
oBrw:aCols[3]:cExpr := 'SALARY/AGE'
Regards



G. N. Rao.

Hyderabad, India

Continue the discussion