Showing results 1 to 3 of 3

Thread: Delete item in a combobox

  1. #1
    Join Date
    17.12.2007
    Posts
    35

    Default Delete item in a combobox

    Hi
    During project configuration VBA "fill" a combobox in this way.

    Set zPIC = zPRJ.DynPictures.Item("Layout.Top")
    zPIC.Elements.Item(2).CreateDynProperty ("States[" & CStr(IndexObj) & "]")
    zPIC.Elements.Item(2).CreateDynProperty ("States[" & CStr(IndexObj) & "].Text")
    zPIC.Elements.Item(2).DynProperties("States[" & CStr(IndexObj) & "].Text") = Group
    zPIC.Elements.Item(2).CreateDynProperty ("States[" & CStr(IndexObj) & "].Value")
    zPIC.Elements.Item(2).DynProperties("States[" & CStr(IndexObj) & "].Value")=IndexObj
    zPIC.Save

    Everything is ok.
    My question is : always through VBA is possible to delete an extension of a combobox?
    Thanx

  2. #2
    robertf Gast

    Default Re: Delete item in a combobox

    Hello!

    It is not possible to delete "DynProperties".

    So you may have to save the actual configuration of the element.
    (Position, Font, Color, Combobox-Entries, ...)
    Then you can delete the Element and create a new one with the saved information.

    I this doesn't answer your question, then let me know...

  3. #3
    Join Date
    17.12.2007
    Posts
    35

    Default Re: Delete item in a combobox

    Thanx ...
    you answer ....this was my "B option"

Similar Threads

  1. Accessing the rgm recipe name combobox
    By andreacold in forum VBA
    Replies: 3
    Last Post: 24th February 2014, 14:35

Posting Rules

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •