malam9384
(Mashkoor Alam)
1
Module myfunctions
Function FindMax(ByVal num1 As Integer, ByVal num2 As Integer) As Integer
’ local variable declaration */
Dim result As Integer
If (num1 > num2) Then
result = num1
Else
result = num2
End If
FindMax = result
End Function
Sub Main()
Dim a As Integer = 100
Dim b As Integer = 200
Dim res As Integer
res = FindMax(a, b)
Console.WriteLine(“Max value is :”, res)
End Sub
End Module
This vbscript code gives error please solve the issue
Hello.
As far I know, this activity doesn’t support Class and Sub declaration. The arguments must be passed by the activity itself.
Refer to this:
Regards,
1 Like
malam9384
(Mashkoor Alam)
3
Thanks Lucas
But i have a question.
How to create function or method in invoke code using vb.net