Using methods with parameters from the User Code Library
Posted: Wed May 22, 2019 10:31 am
Hello,
I've been trying to add a method to my User Code Library. I could use it in a recording when it didn't have parameters, but when I added parameters, I could find the method anymore.
Like this. It doesn't appear in my UserCodeCollection anymore:
It does work when I remove the parameters though (which unfortunately doesn't meet my needs):
Is there a possibility to achieve using that method without copying it to every Recording Module?
Thanks in advance,
Stephan
I've been trying to add a method to my User Code Library. I could use it in a recording when it didn't have parameters, but when I added parameters, I could find the method anymore.
Like this. It doesn't appear in my UserCodeCollection anymore:
Code: Select all
[UserCodeMethod]
public void foo(RepoItemInfo inputtagInfo){ }
Code: Select all
[UserCodeMethod]
public void foo() { }
Thanks in advance,
Stephan