Deleting elements

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • anupama385
    New Member
    • Aug 2011
    • 4

    Deleting elements

    I have an array consisting of n elements. The number n is not known. How to delete those n elements from the array?
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    Use the .clear() method. It will remove all elements from the array.

    Comment

    • Dormilich
      Recognized Expert Expert
      • Aug 2008
      • 8694

      #3
      or just reset it to an empty array.

      Comment

      • anupama385
        New Member
        • Aug 2011
        • 4

        #4
        Hello

        I tried to use the clear method. I would also like to tell that my listbox has multiple selection.

        Comment

        • Rabbit
          Recognized Expert MVP
          • Jan 2007
          • 12517

          #5
          Ok, you tried it. And the result was?

          Also, we reserve one question per thread. You will need to post your listbox question in a different thread. You will also need to ask your questions with more detail.

          Comment

          Working...