views:

455

answers:

1

Hi!
I get an "Object reference not set to an instance of an object" error while running this code below, and I don't know what is wrong with it..

goes like this:

Dim mypoint As New PairOfSingle(0, 0)
Private Structure PairOfSingle
        Dim x As Single
        Dim y As Single
        Public Sub New(ByVal xCoordinate As Single, ByVal yCoordinate As Single)
            x = xCoordinate
            y = yCoordinate
        End Sub 
End Structure`

thanks

A: 

The question is irrelevant, because the problem lies elsewhere:(

Agata
Mark your answer as accepted so people don't think it's an open question?
Maslow
All right, I did that, thanks :)
Agata