Murach's Beginning Visual Basic .NET

This chapter shows how to code and call Sub procedures and functions, work with modules and scopes, provide for exception handling, cast values from one data type to another, and use For Each...Next loops.

Chapter 5 Visual Basic language essentials (part 3)
How to code and call Sub procedures and functions 154
How to code and call a Sub procedure 154
When and how to pass arguments by reference and value 156
How to code and call a function 158
The Future Value application with a Sub procedure and a function 160
How to work with modules and scopes 162
How to create and code with a module 162
How to work with scopes and lifetimes 164
The Future Value application with a module 166
How to use structured exception handling 168
How to code Try...Catch...Finally statements 168
How to catch specific exception classes 170
How to use the Throw statement 172
The Future Value application with structured exception handling 174
How to use structures and classes to work with data types 176
The .NET structures and classes that define data types 176
How data type conversion works 178
How to use shared methods and functions to convert data 180
Three more coding skills 182
How to use the FV function 182
How to code With statements 184
How to use object variables and the For Each...Next statement 186
One more version of the Future Value application 188
Perspective 190
t




Murach's Beginning Visual Basic .NET

Learn more about this book

Add this book to your cart