` 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: Hiding a band on a report at runtime
1998-08-04 -- Stan Guru
 
In WindowManager Method Executable Code Section under OpenReport, Priority Last (Sys:Firm_Name is the Header Band) CASE MESSAGE('Do you have Letter head?','Letter Head',ICON:Question,'&Yes|&No',2,0) OF 1 SETTARGET(Report1,?sys:Firm_Name:3) Report1$?sys:FIRM_NAME:3{PROP:Hide} = 1 SETTARGET() end Arnor Baldvinsson notes: Take a look at the docs for SetTarget. The second parameter determines the THREAD number to set target to. You are passing it a use variable, so it's trying to set the target to some thread that may not be running or whatever. Just use: SetTarget(Report) ?Sys:Firm_Name:3{Prop:Hide} = True SetTarget() OR Report$?Sys:Firm_Name:3{Prop:Hide} = True Where Report is the label of the report.


Today is November 21, 2024, 7:20 am
This article has been viewed 35281 times.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: