| | |
Initializes 2 dimensional array
Please support our VB.NET advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Sep 2007
Posts: 60
Reputation:
Solved Threads: 0
How can i actually initializes a 2-dimensional array ALL to 0?
I try using 2 For loops to set it as 0 like the one shown but it gv me an error:
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...
VB.NET Syntax (Toggle Plain Text)
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)
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
I think by default it has zero value
u can use like this
Dim machinecount(,) As Integer
.....
machinecount = New Integer(23,4) {}Selva ![]() |
Similar Threads
- Dimensioning Strings (C#)
- Array (C++)
- problem generating random numbers (C#)
Other Threads in the VB.NET Forum
- Previous Thread: PDF to text
- Next Thread: Help me to make a Popup Message Program
Views: 2234 | Replies: 2
| Thread Tools | Search this Thread |
Tag cloud for VB.NET
.net .net2008 2008 access advanced application array basic beginner browser button buttons center class click client code combo convert cuesent data database datagrid datagridview date datetimepicker design designer dissertation dissertations dissertationtopic eclipse excel exists fade filter forms function html images lib listview map mobile module msaccess net number objects open panel pdf picturebox picturebox2 port position print printing problem read refresh regex richtextbox right-to-left save search serial settings shutdown socket sorting sqldatbase sqlserver studio temperature textbox timer timespan transparency txttoxmlconverter usercontol validation vb vb.net vb2008 vba vbnet visual visualbasic visualbasic.net visualstudio.net visualstudio2008 web webbrowser winforms winsock wpf wrapingcode xml year





