AnsweredAssumed Answered

Close and open different processbook displays on one button click in VB

Question asked by alanR on Nov 29, 2017
Latest reply on Dec 6, 2017 by dmalysheva

Hi,

Im trying to open and close different processbook displays on one button click . So its a  BACK button , what it does is successfully go back to the previous display, but the display  that was just "closed" is not actually closed it is just minimized behind the current display.

 

My Code:

 

With oButton

    .name = "BackButton"

    .Top = 14950

    .Left = -11180

    .Width = 280

    .Height = 117

    End With

 

 

    Set oButtonDef = oButton.GetDefinition

    With oButtonDef

    .Text = "Back"

    .Type = pbButLinkedPDI

    .Action = "c:\MyFile"

    .Action

   

    trendDisplay.Close (False)

   

    End With

Outcomes