Richard Goh Active Member Licensed User Longtime User Aug 6, 2015 #1 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) 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)
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) 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)
Richard Goh Active Member Licensed User Longtime User Aug 6, 2015 #2 Sorry my mistake. There was an extra semi-colon in the end of the code. Was used to code in other language syntax and conveniently added with line termination. Upvote 0
Sorry my mistake. There was an extra semi-colon in the end of the code. Was used to code in other language syntax and conveniently added with line termination.