Skip to Content

UI: how to close XML form from botton click

Hye!

I have loaded a xml form with a botton "Close". I know about events but I want that when I press this botton, the xml form is closed or unloaded and showing other xml form.

In visual basic studio, I have methods like load, unload, show, hide but here ?

Thanks

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Apr 13, 2004 at 01:00 PM

    if you set the UID of the button to "2" then SBO will handle the closing of the form for you.

    Alternatively, you can write code for the ItemEvent() event for the SAPbouiCOM.BoEventTypes.et_CLICK event type, and close the form through code:

    Set oForm = SBO_Application.Forms.Item("MyForm")

    oForm.Close

    Add comment
    10|10000 characters needed characters exceeded