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

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:

For B = 0 To 23
            For C = 0 To 4
                machinecount(B, C) = 0
            Next
        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...

Hi
I think by default it has zero value
u can use like this

Dim machinecount(,) As Integer

.....
machinecount = New Integer(23,4) {}

solved..thank You so much....reputation given...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.