storing many items in a list box to a single variable

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Hema Suresh
    New Member
    • Apr 2012
    • 21

    #1

    storing many items in a list box to a single variable

    Hi All

    I have 4 como boxes and 4 text boxes
    I gave all the 8 values and coded to make all the selected and entered values to a list box
    Now I need all the values in a single list box to be stored in a single variable
    Please help me out

    Thank u
  • Guido Geurs
    Recognized Expert Contributor
    • Oct 2009
    • 767

    #2
    Is it possible to attach your code in Bytes?

    Comment

    • Hema Suresh
      New Member
      • Apr 2012
      • 21

      #3
      Thank you

      I tried in a different way managed to complete the task
      Now I have a different doubt
      I placed 4 combo boxes and 4 text boxes
      I selected some values fom combo boxes and entered 4 values in text boxes and saved it in a Label
      Everything is ok
      I have a command button for editing the values
      If i click Edit all the values are cleared
      But i couldnt see the list of items in the 4 combo boxes again. Its empty
      I used Combo1.Clear

      Simply to say, if i do any worng selection from the combo box, and if i click edit Edit button to clear it only thr text in the combobox should be cleared not the items in the list. so that i can make a correct selection

      Thank u

      Comment

      • Guido Geurs
        Recognized Expert Contributor
        • Oct 2009
        • 767

        #4
        To set the selection of a combobox to nothing=
        Code:
        Combobox1.text=""
        IS it possible to attach your code in Bytes? (click on the button [Advanced] under this editor window)

        "Combo1.cle ar" erases all the values in the combobox !!!

        No need to erase the selection! just select again!

        Comment

        Working...