Results 1 to 2 of 2

Thread: Array index delete

  1. #1

    Thread Starter
    Member
    Join Date
    Aug 2002
    Location
    ENGLAND
    Posts
    38

    Array index delete

    Dear All
    I have got array called MyArray()
    MyArray(0)=A
    MyArray(1)=B
    MyArray(2)=""
    MyArray(3)=C
    MyArray(4)=""
    ...
    ...
    MyArray(10)=W
    I would like to delete the empty array index where "" exist
    and update the array again
    Many Thanks in advance for any Help
    salih
    sa

  2. #2
    Addicted Member
    Join Date
    Feb 2002
    Location
    closed
    Posts
    196
    with a 'plain' array there is no one line solution to deleting/removing individual elements. If this is what you want to do then try some other structures from the Collections class, a list, arraylist or stack perhaps. cheers

Posting Permissions

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



Click Here to Expand Forum to Full Width