J
Jim
I there a way to return values for multiple variable from a fuction.
The following does not work because it give me a syntax error
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button3.Click
Dim a As Integer, b As Integer, c As Integer = 1
Dim d As Boolean = False
MsgBox(a & " " & b & " " & c)
d = Testit(a, b, c)
MsgBox(a & " " & b & " " & C)
End Sub
Public Function Testit(ByVal A As Integer, ByVal b As Integer,
ByVal c As Integer) As Boolean
A += 1
b += 1
c += 1
return a, b,c
End Function
The following does not work because it give me a syntax error
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button3.Click
Dim a As Integer, b As Integer, c As Integer = 1
Dim d As Boolean = False
MsgBox(a & " " & b & " " & c)
d = Testit(a, b, c)
MsgBox(a & " " & b & " " & C)
End Sub
Public Function Testit(ByVal A As Integer, ByVal b As Integer,
ByVal c As Integer) As Boolean
A += 1
b += 1
c += 1
return a, b,c
End Function