Tema: Re: VB.Net struktura
Autorius: va
Data: 2010-04-25 11:07:35
Kompileris tokiu atveju sake: Arrays declared as structure members cannot be 
declared with an initial size.

Pagal http://msdn.microsoft.com/en-us/library/78kf2xd4%28v=vs.71%29.aspx 
reikejo panaudoti ReDim:
Dim tinklas(20) As mazgas
ReDim tinklas(0).tevuNr(5)
'tada jau galima ir viskas veikia kaip ir noretus:
tinklas(0).tevuNr(0) = 9

Aisku, ne ypac patogu kiekviena karta atsiradus naujam irasui i sarasa 
ReDim'int, turetu but optimalesnis sprendimas. Bandziau su ArrayList'u, bet 
ten irgi bedos :)

"rl" <ask@me.for> wrote in message news:hqvbn6$ab$1@trimpas.omnitel.net...
>    Structure mazgas
>        Public name As String
>        Public tevuKiek As Integer
>        Public tevuNr(5) As Integer
>        Public tikKiek As Integer
>        Public tikim(32) As Double
>    End Structure