I created a function in code module and taking values string. But when I trying to call the function by passing in string value I got this error message. This is the first time I received this error. I did that for many times in the programs. May I know what's wrong with the code? Any advice?
e.g
Create function in a code mode lib
Sub setValue(val1 As String, val2 As String)
*Call the function in activity
Type rec(val As String, val2 As String)
Dim r As rec
lib.setValue(r.val, r.val2)
e.g
Create function in a code mode lib
Sub setValue(val1 As String, val2 As String)
Log(val1)
End Sub*Call the function in activity
Type rec(val As String, val2 As String)
Dim r As rec
lib.setValue(r.val, r.val2)