'Return' statement in a Sub or a Set cannot return a value
Sub
procedures and property Set
procedures cannot return values.
Error ID: BC30647
Change the current procedure to a function, or to a
Get
property procedure if the current procedure is part of a property.You can effectively return values from
Sub
procedures by modifying the value of parameters passed by reference using theByRef
keyword.
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
.NET feedback
.NET is an open source project. Select a link to provide feedback: