Public Structure info
Public x As Byte
Public z As Byte
public y as byte
Public Structure internalInfo
Dim str As String
dim str2 as string
End Structure
End Structure
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim Info as new info
info.internalInfo.str="afasdfas"
End Sub
Error 2 Reference to a non-shared member requires an object reference.
I can declare it as dim Info as new info.internalinfo
but I can't access too x,z,y fields. I can't say info.x=10 what can I do to access all the fields at once??? Any suggestions please??? Any help will be much appreciated. Thank you so much in advanced.
Public x As Byte
Public z As Byte
public y as byte
Public Structure internalInfo
Dim str As String
dim str2 as string
End Structure
End Structure
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim Info as new info
info.internalInfo.str="afasdfas"
End Sub
Error 2 Reference to a non-shared member requires an object reference.
I can declare it as dim Info as new info.internalinfo
but I can't access too x,z,y fields. I can't say info.x=10 what can I do to access all the fields at once??? Any suggestions please??? Any help will be much appreciated. Thank you so much in advanced.