| GetForm Method | |
| See Also Example |
- Type
- The type of the form to return
- Count
- The instance of the specified form type (1-based)
Returns a form within the application based on its type and type instance.
- Type
- The type of the form to return
- Count
- The instance of the specified form type (1-based)
Each SAP Business One form has a type, which is a unique ID for the form. For example, the type of the Purchase Order form is 142.
Each form can be open multiple times, and the application keeps a counter for each form type of the number of open instances. To get the number of forms open of the same type, use Form.TypeCount. Form objects pointing to different instances of the same type form have the same value in the TypeCount field.
To access a specific instance of a specific form type, use the Forms.GetForm method.
| Getting a form (Visual Basic) | Copy Code | |
|---|---|---|
| ||