property Editor.EditType as EditTypeEnum
Retrieves or sets a value that indicates the type of the editor.

 TypeDescription 
   EditTypeEnum An EditTypeEnum expression that specifies the type of the editor.  
Use the EditType property to set the editor's type. Use the Add method to specify the editor's type when adding the editor to the control. The EditType property is set when using the DataSource property according to the record set field's type.  For instance, if we have a record set field of date type, the EditType property is set to DateType. Use the UserEditor method to specify the program identifier when EditType property is UserEditorType.  Use the UserEditorObject property to access the inner ActiveX control when EditType property is UserEditorType. Use the Value property to specify the editor's value. Use the Option property to define options for a specific type of editor. Use the AddItem and InsertItem methods to add new items to the drop down portion of the editor. Use the AddButton method to add new buttons to the editor.

The following VB sample adds an editor of drop down list type:

 

The following VC sample adds an editor of drop down list type:

The following VC sample adds an Exontrol.ComboBox ActiveX control:

The following VB sample adds a Forms.ComboBox ActiveX control:

 With Record1
    .BeginUpdate
    With .Add("ActiveX", EXRECORDLibCtl.UserEditorType)
        .UserEditor "Forms.ComboBox.1", ""
        With .UserEditorObject()
            .AddItem "Item 1"
            .AddItem "Item 2"
        End With
    End With
    .EndUpdate
End With

Send comments on this topic.
1999-2015 Exontrol.COM, Software. All rights reserved.