Your Products have been synced, click here to refresh
Blatantly stolen from the online helpfile and edited:
Sub Main(state as string) Dim App As Object Dim PartProg As Object Dim RepWin As Object Set App = CreateObject("Pcdlrn.Application") Set PartProg = App.ActivePartProgram Set RepWin = PartProg.ReportWindow if state = "show" then RepWin.Visible = True end if if state = "noshow" then RepWin.Visible = False end if if state = "" then if RepWin.Visible = true then RepWin.Visible = false elseif RepWin.Visible = false then RepWin.Visible = true end if End Sub
Save it and call it from your program: "show" as argument should show the report window, "noshow" should close the report window. No argument "should" close it if open and open it if closed.
ASSIGN/STATE="show" $$ NO, SCRIPT HERE ASSIGN/STATE="noshow" $$ NO, SCRIPT HERE
Blatantly stolen from the online helpfile and edited:
Sub Main(state as string) Dim App As Object Dim PartProg As Object Dim RepWin As Object Set App = CreateObject("Pcdlrn.Application") Set PartProg = App.ActivePartProgram Set RepWin = PartProg.ReportWindow if state = "show" then RepWin.Visible = True end if if state = "noshow" then RepWin.Visible = False end if if state = "" then if RepWin.Visible = true then RepWin.Visible = false elseif RepWin.Visible = false then RepWin.Visible = true end if End Sub
Save it and call it from your program: "show" as argument should show the report window, "noshow" should close the report window. No argument "should" close it if open and open it if closed.
ASSIGN/STATE="show" $$ NO, SCRIPT HERE ASSIGN/STATE="noshow" $$ NO, SCRIPT HERE
© 2024 Hexagon AB and/or its subsidiaries. | Privacy Policy | Cloud Services Agreement |