| Add Method | |
| See Also Example |
- UID
The unique ID of the item; maximum 10 characters.
- 1 is reserved for the Add button and includes automatic management of form mode by the application (changing the button caption when the form mode changes).
- 2 is reserved for the Cancel button.
- Type
- The type of item to add
Adds an item to the collection.
In version 2004, the DataBrowser object was added to support activating the application navigation icons
for your form. The browsing sequence is automatically inherited from the database record.
The UI API will continue to support activating navigation icons via Form.EnableMenu for backward compatibility.
| Visual Basic |
|---|
Public Function Add( _
ByVal UID As String, _
ByVal Type As BoFormItemTypes _
) As Item |
- UID
The unique ID of the item; maximum 10 characters.
- 1 is reserved for the Add button and includes automatic management of form mode by the application (changing the button caption when the form mode changes).
- 2 is reserved for the Cancel button.
- Type
The type of item to addValue Description it_BUTTON Button (not relevant for column type) it_STATIC StaticText (not relevant for column type) it_EDIT EditText it_FOLDER Folder (not relevant for column type) it_RECTANGLE Frame (not relevant for column type) it_COMBO_BOX ComboBox it_LINKED_BUTTON LinkedButton it_PICTURE PictureBox it_EXTEDIT EditText with multiple lines it_CHECK_BOX CheckBox it_OPTION_BUTTON OptionBtn (not relevant for column type) it_MATRIX Matrix (not relevant for column type) it_GRID Grid it_PANE_COMBO_BOX PaneComboBox (not relevant for column type) it_ACTIVE_X ActiveX it_BUTTON_COMBO ButtonCombo (not relevant for column type) it_WEB_BROWSER WebBrowser
An item UID is limited to 10 characters and must be unique per form.
Note that when adding new elements to a form, by default, the elements are positioned to the left-hand side of the first element. To position the elements correctly, set real values to the Left and Top properties.
The following sample code shows how to add items to a form.
Copy Code | ||
|---|---|---|
| ||
The following sample code shows how to activate navigation icons.
| Activating Navigation Icons (Visual Basic) | Copy Code | |
|---|---|---|
| ||