Visual Basic - Chapter 3
[Pages:76]Visual Basic - Chapter 3
Mohammad Shokoohi
* Adopted from An Introduction to Programming Using Visual Basic 2010, Schneider
1
Chapter 3 ? Variables, Input, and Output
3.1 Numbers 3.2 Strings 3.3 Input and Output
2
3.1 Numbers
? Arithmetic Operations ? Variables ? Incrementing the Value of a Variable ? Built-In Functions:
? Math.Sqrt ? Int ? Math.Round
3
Numbers (continued)
? The Integer Data Type ? Multiple Declarations ? Two Integer-Valued Operators ? Parentheses ? Three Types of Errors ? The Error List Window
4
Arithmetic Operations
? Numbers are called numeric literals ? Five arithmetic operations in Visual Basic
+ addition - subtraction * multiplication / division ^ exponentiation
5
Numeric Expressions
2 + 3 3 * (4 + 5) 2 ^ 3
6
Displaying Numbers
Let n be a number or a numeric expression. The statement
lstBox.Items.Add(n)
displays the value of n in the list box.
7
Example 1: Form
8
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- vba functions
- quick learning of visual basic net for students who
- vba format cell as date
- visual basic chapter 3
- visual basic cheat sheet the coding guys
- date time tutorialspoint
- net format strings
- working with variables in excel vba
- access how to write sql statements in vba
- programming microsoft windows with visual basic
Related searches
- visual basic codes for excel
- visual basic for excel examples
- visual basic for beginners excel
- excel visual basic programming examples
- visual basic examples for beginners
- microsoft visual basic for excel
- excel visual basic tutorial pdf
- visual basic for beginners pdf
- microsoft visual basic tutorial pdf
- visual basic programs with codes
- visual basic book pdf download
- visual basic programming for beginners