change Acol(num) to fieldName

change Acol(num) to fieldName

Postby Marc Venken » Sat Jan 14, 2017 3: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.04 with Harbour
User avatar
Marc Venken
 
Posts: 1431
Joined: Tue Jun 14, 2016 7:51 am
Location: Belgium

Re: change Acol(num) to fieldName

Postby nageswaragunupudi » Sun Jan 15, 2017 9:34 pm

Code: Select all  Expand view
  oBrw4:kleuren:bLClickHeader := { |r,c,f,oCol| head_col(oCol:Value),oCol:oBrw:refresh() }
 
Regards

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

Re: change Acol(num) to fieldName

Postby Marc Venken » Sun Jan 15, 2017 10:46 pm

Thanks Again...
Marc Venken
Using: FWH 23.04 with Harbour
User avatar
Marc Venken
 
Posts: 1431
Joined: Tue Jun 14, 2016 7:51 am
Location: Belgium


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 96 guests

cron