Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Store 0 to array
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00886355
Message ID:
00886434
Vues:
14
This message has been marked as the solution to the initial question of the thread.
Hi Mat,

You can call the Clear method to zero out the entires:
_myArray.Clear();
>If I decalare an array like this:
>
>int[] _myArray = new int[10];
>
>the initial values are zero. If I then work with the array, what is the easiest way to reset all the values back to zero? In VFP I could just say:
>
>store 0 to myArray
>
>Do I need to loop through the array or is there an equivalent C# command?
>
>Kind Regards,
>
>Mat
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform