Function Add(ByVal x As Integer, _ ByVal y As Integer) _ As Integer Return x + y End _ Function
Of course, you would never use the statement continuation character as shown in the last iteration of the Add() method, as the code is less than readable. In the real world, this feature is most helpful when defining or calling a member that takes a great number of arguments, to space them out in such a way that you can view them within your editor of choice (rather than scrolling the horizontal scrollbar to see the full list of arguments!).
Was this article helpful?