Well, you could something like this, adding a constructor with the required
parameters:
Private Structure StrX
Dim X As Integer
Dim Y As String
Sub New(ByVal xParam As Integer, ByVal yParam As String)
X = xParam
Y = yParam
End Sub
End Structure
and when intializing something like this:
Dim XX() As StrX = New StrX() {New StrX(1, "a"), New StrX(2, "b")}
--
Carsten Thomsen
Enterprise Development with VS .NET, UML, and MSF
http://www.apress.com/book/bookDisplay.html?bID=105
"David Stephen" <an*******@discussions.microsoft.com> wrote in message
news:81**********************************@microsof t.com...
If you define a structure
Private Structure StrX
Dim X as Integer
Dim Y as String
End Structure
Is there a way to populate the structre when you define the array.
Dim XX() as StrX = Str((1,'A'), (2,'B'))
Thanks
David