`
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. Printed November 21, 2024, 11:53 am This article has been viewed/printed 35282 times. |