📚 SAP Business One SDK Help

AddEx Method
See Also  Example
CreationPackage
Contains properties of the new form, such as its border style and unique ID.

Description

Creates a new form in the SAP Business One application.

By default, the form is not visible.

Syntax

Visual Basic
Public Function AddEx( _
   ByVal CreationPackage As FormCreationParams _
) As Form

Parameters

CreationPackage
Contains properties of the new form, such as its border style and unique ID.

Example

Adding a form (Visual Basic)Copy Code
Dim creationPackage As SAPbouiCOM.FormCreationParams
creationPackage = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_FormCreationParams)

'// BE is SAP namespace
creationPackage.UniqueID = BE_1
creationPackage.FormType = BE_UserForm
creationPackage.ObjectType = ""
creationPackage.BorderStyle = SAPbouiCOM.BoFormTypes.ft_Sizable

oForm = SBO_Application.Forms.AddEx(creationPackage)

See Also