K
KM
Hi group
I´ve created a new class but I can´t seem to access any of the public
subs in the class. The class:
Public Class testClass
Public iTest As Integer
Public Sub New()
iTest = 0
End Sub
Public Sub add()
iTest = iTest + 1
End Sub
Public Function returnValue() As Integer
Return iTest
End Function
End Class
I would imagine, that this is the way to use this class in a form:
dim myTestClass as testClass = new testClass
and then something like:
myTestClass.add()
dim i as integer
i = myTestClass.returnValue()
Any suggestions would be greatly appreciated
TIA
Kaare
I´ve created a new class but I can´t seem to access any of the public
subs in the class. The class:
Public Class testClass
Public iTest As Integer
Public Sub New()
iTest = 0
End Sub
Public Sub add()
iTest = iTest + 1
End Sub
Public Function returnValue() As Integer
Return iTest
End Function
End Class
I would imagine, that this is the way to use this class in a form:
dim myTestClass as testClass = new testClass
and then something like:
myTestClass.add()
dim i as integer
i = myTestClass.returnValue()
Any suggestions would be greatly appreciated
TIA
Kaare