Never mind...it's solved now.
I didn't initialize each element in the array before the read/write part.
Thanks anyway :-)
For n As Integer = 0 To arrs.Length - 1
arrs(n) = New ARR
Next
Dim i As Integer
Dim something As Integer = 14
For i = 0 To 32
If arrs(i).nr = Nothing Then ...
User Profile
Collapse
-
arrays in a custom class
Hi all.
First of all i want to say that i'm very new to vb.net (2008) so sorry if this is a stupid question.
I can't figure out why this does not work.
Public arrs(32) As ARR
Public Class ARR
Public nr As Integer
Public name As New String(New Char(17) {})
End Class
Private Sub Form1_Load(ByVa l sender As System.Object, ByVal e As System.EventArg s)...
No activity results to display
Show More
Leave a comment: