Murach's Visual Basic 2005
How to work with numeric and string data

This chapter shows you how to perform arithmetic operations on the various types of numeric data and how to work with string data. Beyond that, this chapter presents three important subjects that are usually treated too lightly or too late in other books: casting, data conversion, and scope.

Chapter 4 How to work with numeric and string data
How to work with the built-in value types 96
The built-in value types 96
How to declare and initialize variables 98
How to declare and initialize constants 98
How to code arithmetic expressions 100
How to code assignment statements 102
How to work with the order of precedence 104
How to use casting 106
How to change the type semantics 108
How to use the Math class 110
How to work with strings 112
How to declare and initialize a string 112
How to join and append strings 112
How to convert data types 114
The .NET structures and classes that define data types 114
How to use Visual Basic functions to convert data types 116
How to use methods to convert data types 118
How to use three of the formatting functions 120
How to use methods to convert numbers to formatted strings 122
Three other skills for working with data 124
How to work with scope 124
How to declare and use enumerations 126
How to work with nullable types 128
Two versions of the Invoice Total application 130
The basic Invoice Total application 130
The enhanced Invoice Total application 132




Murach's VB 2005

Learn more about this book

View the table of contents

Add this book to your cart



Our Ironclad Guarantee

First, try our books for 90 days. Then, if you aren't completely convinced that our books are the best ones you've ever used, you can return them for a full refund...no questions asked.