Hi all,, i want to remove the single item from an array,How to do it...
for example,
ar[0] = 1; ar[1] = 2; ar[2] = 3; ar[3] = 4; ar[4] = 5; ar[5] = 6;
here ,i want to delete the element 3,which is ar[2] = 3. how can i do it ?
|
| Author: Dharmaraj 12 Oct 2008 | Member Level: Diamond | Rating: Points: 3 |
Hi, For removing an element from a specified location, you can use the RemoveAt(indexvalue). When you give the index. The values in the position will get removed automatically. Regards, Dharma
|
| Author: Bindu Bujji 12 Oct 2008 | Member Level: Gold | Rating: Points: 2 |
You have to use RemoveAt(index). Here index is the index value of the array which starts with zero.
Bindu
|