E
eBob.com
I've done a lot of programming but very little OOP. Would someone be kind
enough to explain to me why I get a "declaration expected" on this
statement: anythingarray(0) = new anything(3)
Thanks, Bob
Public Class Form1
Inherits System.Windows.Forms.Form
Dim anythingarray(4) As anything
anythingarray(0) = new anything(3) ' < < here's the statement in error
#Region " Windows Form Designer generated code "
#End Region
End Class
Public Class anything
Dim onenum As Integer
Sub New(ByVal x As Integer)
onenum = x
End Sub
End Class
enough to explain to me why I get a "declaration expected" on this
statement: anythingarray(0) = new anything(3)
Thanks, Bob
Public Class Form1
Inherits System.Windows.Forms.Form
Dim anythingarray(4) As anything
anythingarray(0) = new anything(3) ' < < here's the statement in error
#Region " Windows Form Designer generated code "
#End Region
End Class
Public Class anything
Dim onenum As Integer
Sub New(ByVal x As Integer)
onenum = x
End Sub
End Class