How to modify Combobox during runtime

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • letobale1982
    New Member
    • Jan 2008
    • 4

    How to modify Combobox during runtime

    Hello I would like to get some ideas on how to modify a Combobox during runtime and save the changes so next time the form is ran changes are available.

    Here is the plan.
    A form displays a combobox that get populated with several items.
    Next to the combobox I will add three buttons: Add, Delete and Modify.

    My idea is that the combobox will read a previously created file with the items of the list.
    And each button will modify that same file in order to be abel to manipulate the combobox.

    Do you have any ideas on what kind of db file i should use that gives me a simple solution?
    Are there particular tips or tweaks I should know about?

    Thanks. Hope to hear from you soon.
  • smartchap
    New Member
    • Dec 2007
    • 236

    #2
    Dear
    You can do this. In the add button write code for input of data and then write / append that data in the file. Clear data in combobox and refill it from data from the file (amended).
    In delete button write code for deleting the itemnumber selected in the combo and modify the file and refill combo.
    Similarly for Modify button write code for modifying the item selected (index may be used) and replace this with old data at that index. Then modify the file.

    Comment

    • debasisdas
      Recognized Expert Expert
      • Dec 2006
      • 8119

      #3
      that can be achieved by using a database. You can read and write to the combo at runtime and the changes are saved to the database.

      Comment

      Working...