Manipulating Data

Now that you can make all kinds of variables with different data types, it will be helpful for you to understand how to manipulate your data as well.

What happens when you need to add two number type variables together? Or what if you need to find out whether a specific word appears in a string? The following sections look at a bunch of these types of functions.

Number Manipulation

Manipulating numbers is nothing more than doing math. It’s either addition, subtraction, multiplication, or division. Let’s look at the operations and their operators.

Let’s declare some variables and perform some mathematical operations and see what we get. We’ll use some of our cool short cuts for declaring and initializing variables.

Visual Basic ...

Get ASP.NET for Web Designers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.