Skip to Content
0
Former Member
Sep 22, 2005 at 07:56 AM

How to know if a form exists

105 Views

I want to know if a form exists. This is because when i try to get a form, and it is not available, the program gives me an exception.

For example:

Dim FrmT As SAPbouiCOM.Form

FrmT = GestorSAP.SBO_Application.Forms.GetForm("-651", 1)

If form -651 doesn't exists, it gives me an exception, and i want to avoid it! How can i do it? Thanks!