0

Private Sub Command1_Click()
Dim a, b As Integer
a = 10
b = 20
sum1(a,b)
End Sub

Private Sub sum1(a, b)
Dim c As Integer
c = a + b
Print c
End Sub

i have called the procedure bu simply the procedure name & arguments within the parentheses as in VB.net, but there is error in the above program.
Plz help me out.

2
Contributors
1
Reply
2
Views
10 Years
Discussion Span
Last Post by choudhuryshouvi
0

use like this :-

Private Sub Command1_Click()
Dim a, b As Integer
a = 10
b = 20
[B]Call sum1(a,b)[/B]
End Sub

regards
Shouvik

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.