PDA

Click to See Complete Forum and Search --> : Array index delete


SALIH
Feb 25th, 2003, 09:43 AM
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

powdir
Feb 25th, 2003, 10:20 AM
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