Hello Roger
How to Change the Header to a DCBROWSECOL
Thank you
Change the Header to a DCBROWSECOL
Change the Header to a DCBROWSECOL
Nolberto Paulino
Regards
Regards
Re: Change the Header to a DCBROWSECOL
Hi,
i do it this way:
DCBROWSECOL FIELD bonart->hoev HEADER {|| "#"+str(nTotstuks,7) } OBJECT oAantal PARENT oBrowseart WIDTH 5 ID "ARTHOEV" font "12.Verdana bold"
When I want to change it:
oAantal:heading:setcell(1 ,"#"+str(nTotstuks,7), ,.T.)
oAantal:heading:invalidaterect(oAantal:heading:cellrect(1))
i do it this way:
DCBROWSECOL FIELD bonart->hoev HEADER {|| "#"+str(nTotstuks,7) } OBJECT oAantal PARENT oBrowseart WIDTH 5 ID "ARTHOEV" font "12.Verdana bold"
When I want to change it:
oAantal:heading:setcell(1 ,"#"+str(nTotstuks,7), ,.T.)
oAantal:heading:invalidaterect(oAantal:heading:cellrect(1))
Re: Change the Header to a DCBROWSECOL
Just use a codeblock to return the text you want...digitsoft wrote:Hello Roger
How to Change the Header to a DCBROWSECOL
Thank you
Regan Cawkwell
Real Business Applications Ltd
http://www.rbauk.com
Real Business Applications Ltd
http://www.rbauk.com
Re: Change the Header to a DCBROWSECOL
Chris,skiman wrote:Hi,
i do it this way:
DCBROWSECOL FIELD bonart->hoev HEADER {|| "#"+str(nTotstuks,7) } OBJECT oAantal PARENT oBrowseart WIDTH 5 ID "ARTHOEV" font "12.Verdana bold"
When I want to change it:
oAantal:heading:setcell(1 ,"#"+str(nTotstuks,7), ,.T.)
oAantal:heading:invalidaterect(oAantal:heading:cellrect(1))
Why do you do the 2nd bit. If it's a codeblock it should just change on the next refresh, shouldn't it?
Regan Cawkwell
Real Business Applications Ltd
http://www.rbauk.com
Real Business Applications Ltd
http://www.rbauk.com
Re: Change the Header to a DCBROWSECOL
hi Regan,
Sometimes refreshing has flickering as a result. That's why I try to avoid it as much as possible.
Sometimes refreshing has flickering as a result. That's why I try to avoid it as much as possible.
Re: Change the Header to a DCBROWSECOL
That's one way to do it, but if you use a code block for the header then all you need to do is oBrowse:refresh(). This will reevaluate and display all headers and footers that are code blocks.oAantal:heading:setcell(1 ,"#"+str(nTotstuks,7), ,.T.)
oAantal:heading:invalidaterect(oAantal:heading:cellrect(1))
The eXpress train is coming - and it has more cars.