O'Reilly logo

ASP.NET for Web Designers by Peter Ladka

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required