Login
`
Templates, Tools and Utilities
|
||
Icetips Article
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, 3:47 am This article has been viewed 35280 times.
|
|