I get an error when I declare an object NOT-shared in a subclass.
I can not make this object (glNR) shared.
Is there an other way?
Code...
The error is 'Reference to a non-shared member requires an object reference'.
Does anyone can help ?
Thanks.
I can not make this object (glNR) shared.
Is there an other way?
Code...
Code:
Public Class clsRap
Private glNr As String = "" [I]' not shared[/I]
Public Class clsHd
Public Sub Hd(ByVal _D As SPZClasses.clsPDF)
[B]dim xx = glNr[/B] [I]' Here I get the error[/I]
' I need the information set in RPT1 !!
End Sub
End Class
Public Function RPT1(ByVal _ID As String)
Dim resultaat As Boolean = True
[B]glNr = _ID[/B]
Return resultaat
End Function
End Class 'clsRap
Public Class Rap1
Dim Doc as new clsRap
Doc.RPT1(123)
End Class
Does anyone can help ?
Thanks.
Comment