[QUESTION] Acquiring variables in VAR_OUTPUT section in method declaration #93
Unanswered
Specter-13
asked this question in
Q&A
Replies: 1 comment
-
@RauerJ we came across what seems to be an issue... not urgent maybe @theBadT could have a look at it... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I would like to acquire output variables of method.
I have following plc code sample:
For input variables I'm using following code which is working just fine:
var inputVars = methodDeclaration.Variables.Where(v => v.Section == Section.Input);
where
methodDeclaration
is type ofIMethodDeclaration
from AX semantic model.However, for output variables following code doesn't work:
var outputVars = methodDeclaration.Variables.Where(v => v.Section == Section.Output);
I would expect to get a list of variables in VAR_OUTPUT, but I've got an empty list.
Am I missing something or is there a different way to acquire output variables?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions