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

Introducing Nullable Types

As you read in the discussion of value types and reference types, value types have a default value that is zero, whereas reference types have a default value that is a null reference and is represented in VB by the Nothing language literal. This is because a reference type can store null values, but value types cannot. Attempting to assign a null value to a value type would result in resetting to the default value for that type. This is a limitation because there are situations in which you need to store null values in value types, such as when fetching data from a SQL Server database. You can have a hypothetical Orders table where the Ship date column enables null values. SQL Server has its own data types, one of ...

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