Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Store 0 to array
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00886355
Message ID:
00886434
Views:
13
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform