943,794 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 4094
  • VB.NET RSS
May 27th, 2008
0

Initializes 2 dimensional array

Expand Post »
How can i actually initializes a 2-dimensional array ALL to 0?

VB.NET Syntax (Toggle Plain Text)
  1. Dim machinecount(,) As Integer

I try using 2 For loops to set it as 0 like the one shown but it gv me an error:

VB.NET Syntax (Toggle Plain Text)
  1. For B = 0 To 23
  2. For C = 0 To 4
  3. machinecount(B, C) = 0
  4. Next
  5. Next

And i need to loop each argument to get a count....
for example....i want machinecount(1,2)++ ... something like this.....

can anyone help me? Thank You s much...
Similar Threads
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
evios is offline Offline
60 posts
since Sep 2007
May 28th, 2008
0

Re: Initializes 2 dimensional array

Hi
I think by default it has zero value
u can use like this
Dim machinecount(,) As Integer

.....
machinecount = New Integer(23,4) {}
Reputation Points: 44
Solved Threads: 101
Posting Pro
selvaganapathy is offline Offline
547 posts
since Feb 2008
May 28th, 2008
0

Re: Initializes 2 dimensional array

solved..thank You so much....reputation given...
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
evios is offline Offline
60 posts
since Sep 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: PDF to text
Next Thread in VB.NET Forum Timeline: Help me to make a Popup Message Program





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC