Skip to Content
Visual Basic 2015 Unleashed
book

Visual Basic 2015 Unleashed

by Alessandro Del Sole
July 2015
Intermediate to advanced
1300 pages
87h 27m
English
Sams
Content preview from Visual Basic 2015 Unleashed

Methods

Methods represent actions and are the .NET equivalent of what in other programming environments are called functions and procedures. A method can be a member of classes, structures, and modules. Methods that return a value are represented by Function..End Function blocks, such as the following:

Function DoSomething() As String      Return "A text message"End Function

Methods that do not return a value are represented by Sub..End Sub blocks, such as the following:

Sub DoSomething()'write your code hereEnd Sub

Methods can receive parameters that can be processed within code blocks. Such parameters are called, in .NET terminology, arguments. The following code block shows an example of an argument named message ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Beginning Visual Basic 2015

Beginning Visual Basic 2015

Bryan Newsome

Publisher Resources

ISBN: 9780134196664Purchase book