Change the Header to a DCBROWSECOL
Posted: Tue May 09, 2017 9:02 am
Hello Roger
How to Change the Header to a DCBROWSECOL
Thank you
How to Change the Header to a DCBROWSECOL
Thank you
Donnay Software Web Forums
http://bb.mobile.donnay-software.com/Donnay/
http://bb.mobile.donnay-software.com/Donnay/viewtopic.php?f=2&t=2191
Just use a codeblock to return the text you want...digitsoft wrote:Hello Roger
How to Change the Header to a DCBROWSECOL
Thank you
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))
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))