Delete array item

  • Thread starter Thread starter Arjen
  • Start date Start date
A

Arjen

Hello,

How can I remove an item from an array?

for ( int i = 0; i < myArray.Length; i++ ) {

if ( myArray.Status == "yes" ) {
// Delete from array
}

}

Thanks!
Arjen
 
Arjen said:
How can I remove an item from an array?

You can't. Arrays are of a fixed size in .NET. You might want to look
at the ArrayList class.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top