'Declaring a String Dim strGoogle As String 'Declaring a Boolean Dim blnBing As Boolean 'Declaring an Integer Dim intYahoo As Integer 'Declaring a Decimal Dim decAsk As Decimal 'Assigning a value to a variable strGoogle = "Googling" blnBing = False intYahoo = 1 decAsk = 0.25 'Outputting all of the values to the variables in a message box MessageBox.Show(strGoogle & " " & blnBing & " " & intYahoo + decAsk)
Monday, January 24, 2011
Variables in Visual Basic 1/24/11
Visual Basic, just like most programming languages, uses variables for storing values. A variable has a name (the word that you use to refer to the value that the variable contains). A variable also has a data type (which determines the kind of data that the variable can store). A variable can represent an array if it has to store an indexed set of closely related data items.
Subscribe to:
Post Comments (Atom)
Classes
Programming II
Advanced Relational Database
Blog Archive
-
▼
2011
(35)
-
▼
January
(19)
- Challenge me in Mini Putt!
- Advanced Relational Database /* Inner Join between...
- Programming 2 /* Case Statements */
- Programming 2 /* If Statements */
- How to draw a Cartoon Banana.
- Programming 2 /* Practice #1 - Acts and Facts */
- Programming 2 /* how to join a string to another s...
- Programming 2 /* how to convert an integer into a ...
- Advanced Relational Database /* Assignment 1 Frog ...
- Creating A Database in Microsoft SQL Server 1/24/11
- Converting a number variable into a string 1/24/11
- Variables in Visual Basic 1/24/11
- Advanced Relational Database /* Testing the creati...
- Advanced Relational Database /* Testing the creati...
- Advanced Relational Database /* Testing the creati...
- Advanced Relational Database /* Temp Tables and Ta...
- Programming 2 /* Repeatable Processing */ 1/19/11
- M&M
- Code
-
▼
January
(19)
No comments:
Post a Comment