Return types of IEC methods/functions must not be of the type Any, IecStringEx, IecString80, IecWString or IecWString80 or a user type (structs attributed with [Structure], [Array] or [String]).
IEC methods/functions that can have return values are methods that either:
- have the attribute
[User] - have the attribute
[Execution], are called__Processand are in a class with the attribute[Function] - have the attribute
[Function]and are in a class with the attribute[FunctionContainer]
You can also use the provided automatic Code Fix to convert the return type into an [Output] ref parameter. ( Press Alt + Enter on the Error line to find the Code Fix in the context menu)
Convert the return to a parameter attributed with [Output] ref.
