Visual Basic 2008 Programming: Business Applications with a Design Perspective
Chapter 1 Chapter 2 Chapter 3 Chapter 4 Chapter 5 Chapter 6 Chapter 7 Chapter 8 Chapter 9
Chapter 10 Chapter 11 Chapter 12 Chapter 13 Chapter 14 Appendix A Appendix B Appendix C Home
Loading
Last change: February 13 2016 18:48:19.

 Chapter in PDF

Chapter 2: Visual Basic Programming Concepts
Last change: February 13 2016 18:48:07.
<<PreviousNext>>

Statements That Bring Results and Execute Sequentially

Most statements bring results such as relocating an object onscreen or moving data from one location to another in the memory. For example, you have seen the following statement that moves the label to a random location in the form:

Label1.SetBounds(Rnd() * Width, Rnd() * Height, Label1.Width, Label1.Height)

You have also seen the statement:

lblWelcome.Text = “Welcome to Visual Basic!!!”

This statement moves the text string, ”Welcome to Visual Basic!!!” to the Text property of the label named lblWelcome. Statements of this type are recognized as assignment statements, and are the most commonly seen statements in VB programs.

These types of statements are executed sequentially in the order they appear in a procedure. There are many more of these types of statements. You will encounter many of them throughout the remainder of this book.

Last change: February 13 2016 18:48:09.
<<PreviousNext>>