Tema: Re: VB.Net struktura
Autorius: Valdas
Data: 2010-04-26 13:58:01
>>> Bandau ta pati pasidaryt VB:
>>>    Structure mazgas
>>>        Public name As String
>>>        Public tevuKiek As Integer
>>>        Public tevuNr() As Integer
>>>        Public tikKiek As Integer
>>>        Public tikim() As Double
>>>    End Structure
>>>
>>>    Sub Main()
>>>        Dim tinklas(20) As mazgas
>>>        tinklas(0).name = "vardas"
>>>        tinklas(0).tevuNr(0) = "5"
>>>        Console.WriteLine()
>>>   End Sub
>>>
>>> Kompliuojant gaunu      tinklas(0).tevuNr(0) = "5" eilutej Object 
>>> reference not set to an instance of an object.
>>> Gal galetumet uzvest ant kelio, kaip ta reference'a uzsidet i ta tevuNr masyvuka?

tikriausia todel, kad tevuNr pas tave aprasyta kaip int, o siunti kaip string "5"