` Comment on an Icetips Article
Icetips - Templates, Tools & Utilities for Clarion Developers

Templates, Tools and Utilities
for Clarion Developers

Add a comment to an Icetips Article

Please add your comments to this article. Please note that you must provide both a name and a valid email address in order for us to publish your comment. Comments are moderated and are not visible until they have been approved. Spam is never approved!

Your Name:  
Email:  
Header text/Subject:  

Please enter your comment in the box below:

Back to article list   Search Articles     Add Comment     Printer friendly     Direct link  

Par2: Greenbar on Report
2012-05-07 -- Abe Jimenez
 
You need to filter the band so it doesn't print automatically and then put the code in take record. SetTarget(Report) ?DetailBand{Prop:Color} = Color:Green SetTarget() Print(RPT:DetailBand) SetTarget(Report) ?DetailBand{Prop:Color} = Color:White SetTarget() Print(RPT:DetailBand) Abe adds: The code I posted was not actual working code. It just shows how to change the color of the band. What you want is more like: Loc:Lines += 1 If Loc:Lines % 2 LOC:SelectedColor = 'Color:Green' Else LOC:SelectedColor = 'Color:White' End SetTarget(Report) ?DetailBand{Prop:Color} = LOC:SelectedColor SetTarget() Print(RPT:DetailBand) Russ Egen adds: In ThisWindow.TakeRecord, after parent call: REPORT$?Detail{PROP:Color} = CHOOSE(LOC:Flag = 1,00F0FFF0h,COLOR:White) LOC:Flag = CHOOSE(LOC:Flag = 1,0,1)


Today is November 21, 2024, 6:31 am
This article has been viewed 35237 times.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: