Xbrowse oCol assigment with variabel Headers

Xbrowse oCol assigment with variabel Headers

Postby Marc Venken » Thu Jan 31, 2019 11:06 pm

I always want to use the col names for all actions in xbrowse, since while in devellopment, de colums always changes from place

so we know this works

WITH OBJECT :p_2018
:nEditType := EDIT_NONE
END
WITH OBJECT :p_2017
:nEditType := EDIT_NONE
END

Now I was able to have a dynamic header in xbrowse based on the active year : J_2019, J_2018, J_2017,... (So this works)

oBrw[1]:cHeaders := { 'Code','Naam','Gemeente','Dat_LST','J_'+str(year(date()),4),'J_'+str(year(date())-1,4),'J_'+str(year(date())-2,4),'J_'+str(year(date())-3,4),'J_'+str(year(date())-4,4),'Totaal' }

Now I Tried to get the object working

WITH OBJECT : &'J_'+str(year(date()))
:cOrder:= "D" // No obstante muestra como "A"
//:aBarGetList:= aGroepen
ENDWITH

I tried several combinations, but didn't find the correct way
Marc Venken
Using: FWH 23.04 with Harbour
User avatar
Marc Venken
 
Posts: 1456
Joined: Tue Jun 14, 2016 7:51 am
Location: Belgium

Re: Xbrowse oCol assigment with variabel Headers

Postby nageswaragunupudi » Thu Jan 31, 2019 11:39 pm

Code: Select all  Expand view  RUN

WITH OBJECT :oCol( "J_" + Str( Year( Date() ), 4 ) )
 
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10690
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 64 guests