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.comwww.prenia.comWeblog: blogs.prenia.com/cathi