3.1. Introduction

In this chapter, we introduce Visual Basic programming with program code and present examples to demonstrate how programs can display messages and obtain information from the user at the keyboard for processing. The first two programs simply display text on the screen. The next obtains two numbers from the user, calculates their sum and displays the result. The accompanying discussion shows you how to perform various arithmetic calculations and save their results for later use. The fourth example demonstrates decision-making fundamentals by showing you how to compare two numbers in various ways, then display messages based on the comparison results. The final example demonstrates how to display text in a special window known ...

Get Visual Basic 2005 for Programmers: Deitel Developer Series, Second Edition 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.