Hi. I have 2 questions here regarding classes and Subroutines. I am a noob at vb still and pls excuse my stupidity
I hope u can help me
I have 2 Subroutines in the same Class:
Public Sub DataCapture(ByVal PAGE As Integer, MOTOR As String)
If PAGE = 1 Then
End If
.
.
.
.
.
.
.
PAGE = 12
End Sub
Private Sub MotorCheck()
If DataCapture.Motor = 1 Then
End If
.
.
.
.
.
DataCapture.Motor = 12
End Sub
My First Question :
is it correct to access the DataCapture's MOTOR variable by simple calling DataCapture.Motor
My Second Question
I want to run the Private Sub In every if statement of the public sub. How do i to this since they are both in the same class
That Is all. I hope you can help me, it is greatly appreciated!
Travis