FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour change Acol(num) to fieldName
Posts: 1487
Joined: Tue Jun 14, 2016 07:51 AM
change Acol(num) to fieldName
Posted: Sat Jan 14, 2017 03:24 PM

Hey,

Just didn't find this probably easy issue :

When developing, the browse is changing because I add/change fielnames and colums from position.
If I put a value of [15] then I have to alter the source every time I change something in the coloms

oBrw4:aCols[ 15 ]:bLClickHeader := { |r,c,f,oCol| head_col(oCol:Value),oBrw:refresh() }

I tried

kleuren is a field name, used in the browse as header.

// oBrw4:aCols[ (oBrw4:oCol:kleuren) ]:bLClickHeader := { |r,c,f,oCol| head_col(oCol:Value),oBrw:refresh() }
// oBrw4:aCols[ (oBrw4:kleuren) ]:bLClickHeader := { |r,c,f,oCol| head_col(oCol:Value),oBrw:refresh() }
// oBrw4:aCols[ (oCol:kleuren) ]:bLClickHeader := { |r,c,f,oCol| head_col(oCol:Value),oBrw:refresh() }

Thanks.

Marc Venken

Using: FWH 23.08 with Harbour
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: change Acol(num) to fieldName
Posted: Sun Jan 15, 2017 09:34 PM
Code (fw): Select all Collapse
   oBrw4:kleuren:bLClickHeader := { |r,c,f,oCol| head_col(oCol:Value),oCol:oBrw:refresh() }
Regards



G. N. Rao.

Hyderabad, India
Posts: 1487
Joined: Tue Jun 14, 2016 07:51 AM
Re: change Acol(num) to fieldName
Posted: Sun Jan 15, 2017 10:46 PM

Thanks Again...

Marc Venken

Using: FWH 23.08 with Harbour

Continue the discussion