Introducing Visual Basic
|
|
- Gyles Horatio Dawson
- 5 years ago
- Views:
Transcription
1 Introducing Visual Basic September 8, 2006 Chapter 3 - VB 2005 by Schneider 1
2 Today Chapter 3 provides a great walkthrough intro to VB We re going to take a detailed look at this today (and pick it up next week) We ll keep the pace even, but feel free to offer feedback to the prof we can always adjust as necessary depending on the needs of the class! Chapter 3 - VB 2005 by Schneider 2
3 Next week Kim s going to be back She ll keep going with today s material (and a quick recap) Be prepared for your first assignment later next week Also, Kim will get the website up this weekend! She promises ;) Chapter 3 - VB 2005 by Schneider 3
4 Chapter 3 Fundamentals of Programming in Visual Basic 3.1 Visual Basic Controls 3.2 Visual Basic Events 3.3 Numbers 3.4 Strings 3.5 Input and Output Chapter 3 - VB 2005 by Schneider 4
5 3.1 Visual Basic Controls Invoking Visual Basic Text Box Control Button Control Label Control List Box Control Name Property Fonts / Auto Hide Positioning and Aligning Controls Chapter 3 - VB 2005 by Schneider 5
6 Visual Basic Start Page Chapter 3 - VB 2005 by Schneider 6
7 Start a New Project Chapter 3 - VB 2005 by Schneider 7
8 New Project Dialog Box Chapter 3 - VB 2005 by Schneider 8
9 Initial Visual Basic Screen Chapter 3 - VB 2005 by Schneider 9
10 Toolbox Chapter 3 - VB 2005 by Schneider 10
11 3 Ways to Place a Control from the Toolbox onto the Form Window Double-click Drag Click, Point, and Drag Chapter 3 - VB 2005 by Schneider 11
12 Four Controls at Design Time Text box To select a control, click on it. Sizing handles will appear when a control is selected. Chapter 3 - VB 2005 by Schneider 12
13 Text Box Control Used for input and output When used for output, ReadOnly property is set to True Tasks button Sizing handles Chapter 3 - VB 2005 by Schneider 13
14 Properties Window Press F4 to display the Properties window for the selected control. Categorized view Alphabetical view Chapter 3 - VB 2005 by Schneider 14
15 Properties Window Selected control Properties Settings Chapter 3 - VB 2005 by Schneider 15
16 Some Often Used Properties Text Autosize Font.Name Font.Size ForeColor BackColor ReadOnly Chapter 3 - VB 2005 by Schneider 16
17 Setting Properties Click on property name in left column. Enter its setting into right column by typing or selecting from options displayed via a button or ellipses ( ). Chapter 3 - VB 2005 by Schneider 17
18 Setting the ForeColor Property 1. Click on ForeColor. 2. Click on button at right of settings box. 3. Click on Custom tab to obtain display shown. 4. Click on a colour. Chapter 3 - VB 2005 by Schneider 18
19 Font Property 1. Click on Font in left column. 2. Click on ellipsis at right of settings box to obtain display shown, 3. Make selections. Chapter 3 - VB 2005 by Schneider 19
20 Button Control The caption on the button should indicate the effect of clicking on the button. Text property determines caption. Chapter 3 - VB 2005 by Schneider 20
21 Add an "access key" Chapter 3 - VB 2005 by Schneider 21
22 Label Control Used to identify the contents of a text box. Text property specifies caption. By default, label automatically resizes to accommodate caption on one line. When the AutoSize property is set to False, label can be resized manually. Used primarily to obtain a multi-rowed label. Chapter 3 - VB 2005 by Schneider 22
23 List Box Control Initially used to display several pieces of output. Later used to select from a list. Chapter 3 - VB 2005 by Schneider 23
24 The Name Property How the programmer refers to a control in code Setting for Name property near top of Properties window. Name must begin with a letter, be less than 215 characters long, and may include numbers and letters. Use appropriate 3- or 4-character naming prefix Chapter 3 - VB 2005 by Schneider 24
25 Control Name Prefixes Control button label text box list box Prefix btn lbl txt lst Example btncompute lbladdress txtaddress lstoutput Chapter 3 - VB 2005 by Schneider 25
26 Renaming the Form Initial name is Form1 The Solution Explorer window lists a file named Form1.vb. To rename the form, change the name of this file to newname.vb newname should begin with prefix frm. Chapter 3 - VB 2005 by Schneider 26
27 Fonts Proportional width fonts take up less space for "I" than for "W" like Microsoft Sans Serif Fixed-width fonts take up the same amount of space for each character like Courier New Fixed-width fonts are good for tables. Chapter 3 - VB 2005 by Schneider 27
28 Auto Hide Hides Toolbox when not in use Vertical push pin icon indicates auto hide is disabled. Click the push pin to make it horizontal and enable auto hide. Push pin Chapter 3 - VB 2005 by Schneider 28
29 Positioning Controls Proximity line Chapter 3 - VB 2005 by Schneider 29
30 Aligning Controls Snap line Chapter 3 - VB 2005 by Schneider 30
31 Aligning Controls Snap line Chapter 3 - VB 2005 by Schneider 31
32 3.2 Visual Basic Events An Event Procedure Walkthrough Properties and Event Procedures of the Form The Header of an Event Procedure Chapter 3 - VB 2005 by Schneider 32
33 Event An event is an action, such as the user clicking on a button Usually, nothing happens in a Visual Basic program until the user does something and generates an event. What happens is determined by statements. Chapter 3 - VB 2005 by Schneider 33
34 Sample Statements txtbox.forecolor = Color.Red txtbox.visible = True txtbox.text = Hello World General Form: controlname.property = setting Chapter 3 - VB 2005 by Schneider 34
35 Sample Form txtfirst txtsecond btnred Chapter 3 - VB 2005 by Schneider 35
36 Focus When you click on a text box, a cursor appears in the text box, and you can type into the text box. Such a text box is said to have the focus. If you click on another text box, the first text box loses the focus and the second text box receives the focus. Chapter 3 - VB 2005 by Schneider 36
37 Examples of Events btnshow.click txtbox.textchanged txtbox.leave General Form: controlname.event Chapter 3 - VB 2005 by Schneider 37
38 The three steps in creating a Visual Basic program: 1. Create the interface; that is, generate, position, and size the objects. 2. Set properties; that is, configure the appearance of the objects. 3. Write the code that executes when events occur. Chapter 3 - VB 2005 by Schneider 38
39 Code Window Page tab Class Name box Method Name box Chapter 3 - VB 2005 by Schneider 39
40 Structure of an Event Procedure Header Private Sub objectname_event(...) Handles objectname.event statements End Sub (...) is filled automatically with (ByVal sender As System.Object, ByVal e As System.EventArgs) Chapter 3 - VB 2005 by Schneider 40
41 Code Window Page tab Class Name box Method Name box Chapter 3 - VB 2005 by Schneider 41
42 Create an Outline for an Event Procedure; i.e. header and End Sub 1. Double-click on a control or 2. Use the Class Name and Method Name boxes. (We primarily use the first method.) Chapter 3 - VB 2005 by Schneider 42
43 Sample Form txtfirst txtsecond btnred Double Click on txtfirst Chapter 3 - VB 2005 by Schneider 43
44 Code for Walkthrough Public Class frmdemo Private Sub txtfirst_textchanged(...) Handles txtfirst.textchanged End Sub End Class Chapter 3 - VB 2005 by Schneider 44
45 Code for Walkthrough Public Class frmdemo Private Sub txtfirst_textchanged(...) Handles txtfirst.textchanged txtfirst.forecolor = Color.Blue End Sub End Class Chapter 3 - VB 2005 by Schneider 45
46 IntelliSense Automatically pops up to give the programmer help. Chapter 3 - VB 2005 by Schneider 46
47 Code Window Click tab to return to Form Designer Chapter 3 - VB 2005 by Schneider 47
48 Sample Form txtfirst txtsecond btnred Double-click on btnred Chapter 3 - VB 2005 by Schneider 48
49 Code for Walkthrough Public Class frmdemo Private Sub txtfirst_textchanged(...) Handles txtfirst.textchanged txtfirst.forecolor = Color.Blue End Sub Private Sub btnred_click(...) Handles btnred.click End Sub End Class Chapter 3 - VB 2005 by Schneider 49
50 Code for Walkthrough Public Class frmdemo Private Sub txtfirst_textchanged(...) Handles txtfirst.textchanged txtfirst.forecolor = Color.Blue End Sub Private Sub btnred_click(...) Handles btnred.click txtfirst.forecolor = Color.Red End Sub End Class Chapter 3 - VB 2005 by Schneider 50
51 Event Procedure txtfirst.leave Select txtfirst from Class Name box drop-down list. Select Leave from Method Name box drop-down list. Chapter 3 - VB 2005 by Schneider 51
52 Code for Walkthrough Private Sub txtfirst_leave(...) Handles txtfirst.leave End Sub Private Sub txtfirst_textchanged(...) Handles txtfirst.textchanged txtfirst.forecolor = Color.Blue End Sub Private Sub btnred_click(...) Handles btnred.click txtfirst.forecolor = Color.Red End Sub Chapter 3 - VB 2005 by Schneider 52
53 Code for Walkthrough Private Sub txtfirst_leave(...) Handles txtfirst.leave txtfirst.forecolor = Color.Black End Sub Private Sub txtfirst_textchanged(...) Handles txtfirst.textchanged txtfirst.forecolor = Color.Blue End Sub Private Sub btnred_click(...) Handles btnred.click txtfirst.forecolor = Color.Red End Sub Chapter 3 - VB 2005 by Schneider 53
54 Header of Event Procedure Private Sub btnred_click( ) Handles btnred.click Name, can be changed. Identifies event Private Sub Button_Press( ) Handles btnred.click Chapter 3 - VB 2005 by Schneider 54
55 Handling Multiple Events Event procedure can be invoked by two events. Private Sub Button_Click(...) Handles btnred.click, txtsecond.leave txtfirst.forecolor = Color.Red End Sub Chapter 3 - VB 2005 by Schneider 55
56 Altering Properties of the Form The following won't work: frmdemo.text = "Demonstration" The form is referred to by the keyword Me. Me.Text = "Demonstration" Chapter 3 - VB 2005 by Schneider 56
57 3.3 Numbers Arithmetic Operations Variables Incrementing the Value of a Variable Built-In Functions: Math.Sqrt Int Math.Round Chapter 3 - VB 2005 by Schneider 57
58 Numbers continued The Integer Data Type Multiple Declarations Parentheses Three Types of Errors Chapter 3 - VB 2005 by Schneider 58
59 Arithmetic Operations Numbers are called numeric literals Five arithmetic operations in Visual Basic + addition - subtraction * multiplication / division ^ exponentiation Chapter 3 - VB 2005 by Schneider 59
60 Numeric Expressions * (4 + 5) 2 ^ 3 Chapter 3 - VB 2005 by Schneider 60
61 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. Chapter 3 - VB 2005 by Schneider 61
62 Example 1: Form Chapter 3 - VB 2005 by Schneider 62
63 Example 1: Code and Output Private Sub btncompute_click (...) Handles btncompute.click lstresults.items.add(5) lstresults.items.add(2 * 3) lstresults.items.add((2 ^ 3) 1) End Sub Output 5 in list 6 box 7 Chapter 3 - VB 2005 by Schneider 63
64 Example 1: Code using With Private Sub btncompute_click (...) Handles btncompute.click With lstresults.items.add(5).add(2 * 3).Add((2 ^ 3) 1) End With End Sub Chapter 3 - VB 2005 by Schneider 64
65 Numeric Variable A numeric variable is a name to which a number can be assigned. Examples: speed distance interestrate balance Chapter 3 - VB 2005 by Schneider 65
66 Variables Declaration: Dim speed As Double Variable name Data type Assignment: speed = 50 Chapter 3 - VB 2005 by Schneider 66
67 Initialization Numeric variables are automatically initialized to 0: Dim varname As Double To specify a nonzero initial value Dim varname As Double = 50 Chapter 3 - VB 2005 by Schneider 67
68 Numeric Expressions Numeric variables can be used in numeric expressions. Dim balance As Double = 1000 lstbox.items.add(1.05 * balance) Output: 1050 Chapter 3 - VB 2005 by Schneider 68
69 Assignment Statement Dim numvar1 As Double = 5 Dim numvar2 As Double = 4 numvar1 = 3 * numvar2 lstbox.items.add(numvar1) Output: 12 Chapter 3 - VB 2005 by Schneider 69
70 Incrementing To add 1 to the numeric variable var var = var + 1 Or as a shortcut var += 1 Or as a generalization var += numeric expression Chapter 3 - VB 2005 by Schneider 70
71 Built-in Functions Functions return a value Math.Sqrt(9) returns 3 Int(9.7) returns 9 Math.Round(2.7) is 3 Chapter 3 - VB 2005 by Schneider 71
72 Integer Data Type Variables of type Double can be assigned both whole numbers and numbers with decimals. The statement Dim varname As Integer declares a numeric variable that can only be assigned whole number values between about -2 billion and 2 billion. Chapter 3 - VB 2005 by Schneider 72
73 Multiple Declarations Dim a, b As Double Two other types of multiple-declaration statements are Dim a As Double, b As Integer Dim c As Double = 2, b As Integer = 5 Chapter 3 - VB 2005 by Schneider 73
74 Parentheses Parentheses should be used liberally in numeric expressions. In the absence of parentheses, the operations are carried out in the following order: ^, * and /, + and -. Chapter 3 - VB 2005 by Schneider 74
75 Three Types of Errors Syntax error Run-time error Logic error Chapter 3 - VB 2005 by Schneider 75
76 Some Types of Syntax Errors Misspellings lstbox.itms.add(3) Omissions lstbox.items.add(2 + ) Incorrect punctuation Dim m; n As Integer Chapter 3 - VB 2005 by Schneider 76
77 A Type of Run-time Error Overflow error Dim numvar As Integer = numvar = numvar * numvar Chapter 3 - VB 2005 by Schneider 77
78 A Logical Error Dim average As Double Dim m As Double = 5 Dim n As Double = 10 average = m + n / 2 Value of average will be 10. Should be 7.5. Chapter 3 - VB 2005 by Schneider 78
79 3.4 Strings Variables and Strings Using Text Boxes for Input and Output Concatenation String Properties and Methods: Length Trim IndexOf ToUpper ToLower Substring Chapter 3 - VB 2005 by Schneider 79
80 Strings continued The Empty String Initial Value of a String Option Strict Internal Documentation Line-Continuation Character Chapter 3 - VB 2005 by Schneider 80
81 String Literal A string literal is a sequence of characters surrounded by quotation marks. Examples: "hello" " " "#ab cde?" Chapter 3 - VB 2005 by Schneider 81
82 String Variable A string variable is a name to which a string value can be assigned. Examples: country ssn word firstname Chapter 3 - VB 2005 by Schneider 82
83 String Variable Declaration: Dim firstname As String Variable name Data type Assignment: firstname = "Fred" Chapter 3 - VB 2005 by Schneider 83
84 String Variable You can declare a string variable and assign it a value at the same time. Dim firstname As String = "Fred" Chapter 3 - VB 2005 by Schneider 84
85 Add Method Let str be a string literal or variable. Then, lstbox.items.add(str) displays the value of str in the list box. Chapter 3 - VB 2005 by Schneider 85
86 String Variable You can assign the value of one string variable to another. Dim strvar1 As String = "Hello" Dim strvar2 As String = "Goodbye" strvar2 = strvar1 lstoutput.items.add(strvar2) Output: Hello Chapter 3 - VB 2005 by Schneider 86
87 Variables and Strings Private Sub btndisplay_click(...) Handles btndisplay.click Dim today As String today = "Monday" lstoutput.items.add("hello") lstoutput.items.add(today) End Sub Output: hello Monday Chapter 3 - VB 2005 by Schneider 87
88 Using Text Boxes for Input and Output The contents of a text box is always a string Input example strvar = txtbox.text Output example txtbox.text = strvar Chapter 3 - VB 2005 by Schneider 88
89 Data Conversion Because the contents of a text box is always a string, sometimes you must convert the input or output. dblvar = CDbl(txtBox.Text) Converts a String to a Double txtbox.text = CStr(numVar) Converts a number to a string Chapter 3 - VB 2005 by Schneider 89
90 Concatenation Combining two strings to make a new string quote1 = "We'll always " quote2 = "have Paris." quote = quote1 & quote2 txtoutput.text = quote & " - Humphrey Bogart" Displays We'll always have Paris. - Humphrey Bogart Chapter 3 - VB 2005 by Schneider 90
91 Appending To append str to the string variable var var = var & str Or as a shortcut var &= str Chapter 3 - VB 2005 by Schneider 91
92 Appending Example Dim var As String = "Good" var &= "bye" txtbox.text = var OUTPUT: Goodbye Chapter 3 - VB 2005 by Schneider 92
93 String Properties and Methods "Visual".Length is 6. "Visual".ToUpper is VISUAL. "123 Hike".Length is 8. "123 Hike".ToLower is 123 hike. "a" & " bcd ".Trim & "efg" is abcdefg. Chapter 3 - VB 2005 by Schneider 93
94 Positions in a String Positions of characters in a string are numbered 0, 1, 2,. Consider the string Visual Basic. Position 0: V Position 1: i Position 7: B Substring al begins at position 4 Chapter 3 - VB 2005 by Schneider 94
95 Substring Method Let str be a string. str.substring(m, n) is the substring of length n, beginning at position m in str. Visual Basic.Substring(2, 3) is sua Visual Basic.Substring(0, 1) is V Chapter 3 - VB 2005 by Schneider 95
96 IndexOf Method Let str1 and str2 be strings. str1.indexof(str2) is the position of the first occurrence of str2 in str1. (Note: Has value -1 if str2 is not a substring of str1.) "Visual Basic".IndexOf("is") is 1. "Visual Basic".IndexOf("si") is 9. "Visual Basic".IndexOf("ab") is -1. Chapter 3 - VB 2005 by Schneider 96
97 The Empty String The string "", which contains no characters, is called the empty string or the zero-length string. The statement lstbox.items.add("") skips a line in the list box. The contents of a text box can be cleared with either the statement txtbox.clear() or the statement txtbox.text = "" Chapter 3 - VB 2005 by Schneider 97
98 Initial Value of a String By default the initial value is Nothing Strings can be given a different initial value as follows: Dim today As String = "Monday" Chapter 3 - VB 2005 by Schneider 98
99 Option Strict Visual Basic allows numeric variables to be assigned strings and vice versa, a poor programming practice. To turn this feature off, put the following statement at the very top of the code window Option Strict On Chapter 3 - VB 2005 by Schneider 99
100 Option Strict On for All Programs Select Options from the Tools menu In left pane, expand Projects and Solution Select VB Defaults Set Option Strict to On Chapter 3 - VB 2005 by Schneider 100
101 With Option Strict On Dim dblvar As Double, intvar As Integer Dim strvar As String Not Valid: Replace with: intvar = dblvar intvar = CInt(dblVar) dblvar = strvar dblvar = CDbl(strVar) strvar = intvar strvar = CStr(intVar) Chapter 3 - VB 2005 by Schneider 101
102 Comments Private Sub btncompute_click (...) Handles btncompute.click 'Calculate the balance in an account Dim rate As Double 'Annual rate of interest Dim curbalance As Double 'Current balance Chapter 3 - VB 2005 by Schneider 102
103 Internal Documentation 1. Other people can easily understand the program. 2. You can understand the program when you read it later. 3. Long programs are easier to read because the purposes of individual pieces can be determined at a glance. Chapter 3 - VB 2005 by Schneider 103
104 Automatic Colorization Comments green String literals maroon Keywords blue Note: Keywords are words such as Sub, Handles, Private, With, and End that have special meaning in Visual Basic. They cannot be used as variable names. Chapter 3 - VB 2005 by Schneider 104
105 Line-Continuation Character A long line of code can be continued on another line by using an underscore (_) preceded by a space msg = "I'm going to make " & _ "him an offer he can't refuse." Chapter 3 - VB 2005 by Schneider 105
106 3.5 Input and Output Formatting Output with Format Functions Formatting Output with Zones Reading Data from Files Getting Input from an Input Dialog Box Using a Message Dialog Box for Output Using a Masked Text Box for Input Chapter 3 - VB 2005 by Schneider 106
107 Formatting Output with Format Functions Function FormatNumber( , 1) FormatCurrency( , 2) FormatPercent(0.183, 0) String Value 12,345.6 $12, % Chapter 3 - VB 2005 by Schneider 107
108 Formatting Output with Zones Use a fixed-width font such as Courier New Divide the characters into zones with a format string. Dim fmtstr As String = "{0, 15}{1, 10}{2, 8}" lstoutput.items.add(string.format(fmtstr, _ data0, data1, data2)) Chapter 3 - VB 2005 by Schneider 108
109 Formatting Output with Zones Dim fmtstr As String = "{0, -15}{1, 10}{2, 8}" lstoutput.items.add(string.format(fmtstr, _ data0, data1, data2)) Here, 15 was preceded by a minus sign. This produces left justification in 0 th zone. There will be right justification in the other two zones. Chapter 3 - VB 2005 by Schneider 109
110 Zone Formatting Symbols Symbols: N, C, and P :Nr :Cr :Pr Effect on zone FormatNumber(data, r) FormatCurrency(data, r) FormatPercent(data, r) Dim fmtstr As String = "{0,15:N1}{1,10:C2}{2,8:P0}" Chapter 3 - VB 2005 by Schneider 110
111 Reading Data from Files Data can be stored in files and accessed with a StreamReader object. We assume that the files are text files (that is, have extension.txt) and have one piece of data per line. Chapter 3 - VB 2005 by Schneider 111
112 Sample File: PAYROLL.TXT Mike Jones John Smith Name Hourly wage Number of hours worked Chapter 3 - VB 2005 by Schneider 112
113 Steps to Use StreamReader Execute a statement of the form Dim readervar As IO.StreamReader = _ IO.File.OpenText(filespec) or the pair of statements Dim readervar As IO.StreamReader readervar = IO.File.OpenText(filespec) Chapter 3 - VB 2005 by Schneider 113
114 Steps to Use StreamReader Read items of data in order, one at a time, from the file with the ReadLine method. strvar = readervar.readline After the desired items have been read from the file, terminate the communications link readervar.close() Chapter 3 - VB 2005 by Schneider 114
115 Example using StreamReader Dim name As String Dim wage, hours As Double Dim sr As IO.StreamReader = _ IO.File.OpenText("PAYROLL.TXT") name = sr.readline wage = CDbl(sr.ReadLine) hours = CDbl(sr.ReadLine) lstbox.items.add(name & ": " & wage * hours) OUTPUT: Mike Jones: Chapter 3 - VB 2005 by Schneider 115
116 Comment on Example Consider lstbox.items.add(name & ": " & wage * hours) The ampersand automatically converted wage * hours into a string before concatenating. We didn t have to convert wage * hours with CStr. Chapter 3 - VB 2005 by Schneider 116
117 Getting Input from an Input Dialog Box stringvar = InputBox(prompt, title) filename = InputBox("Enter the name " _ & "of the file containing the " & _ "information.", "Name of File") Title Prompt Chapter 3 - VB 2005 by Schneider 117
118 Using a Message Dialog Box for Output MsgBox(prompt, 0, title) MsgBox("Nice try, but no cigar.", 0, _ "Consolation") Title Prompt Chapter 3 - VB 2005 by Schneider 118
119 Masked Text Box Similar to an ordinary text box, but has a Mask property that restricts what can be typed into the masked text box. Chapter 3 - VB 2005 by Schneider 119
120 Input Mask Dialog Box Chapter 3 - VB 2005 by Schneider 120
121 Mask A Mask setting is a sequence of characters, with 0, L, and & having special meanings. 0 Placeholder for a digit. L Placeholder for a letter. & Placeholder for a character or space. Chapter 3 - VB 2005 by Schneider 121
122 Sample Masks State abbreviation: LL Phone number: Social Security Number: License plate: &&&&&& Chapter 3 - VB 2005 by Schneider 122
Introducing Visual Basic
Introducing Visual Basic September 13, 2006 Chapter 3 - VB 2005 by Schneider 1 Today Continuing our intro to VB First some housework Chapter 3 - VB 2005 by Schneider 2 Friday Assignment 1 Vote on midterm
More informationIntroducing Visual Basic
Introducing Visual Basic September 11, 2006 Chapter 3 - VB 2005 by Schneider 1 Today Continuing our intro to VB First some housework Chapter 3 - VB 2005 by Schneider 2 Classroom Contract Chapter 3 - VB
More informationHOW TO DEVELOP A VB APPLICATION
REVIEW OF CHAPTER 2 HOW TO DEVELOP A VB APPLICATION Design the Interface for the user Literally draw the GUI Drag buttons/text boxes/etc onto form Determine which events the controls on the window should
More informationChapter 2 Visual Basic, Controls, and Events. 2.1 An Introduction to Visual Basic 2.2 Visual Basic Controls 2.3 Visual Basic Events
Chapter 2 Visual Basic, Controls, and Events 2.1 An Introduction to Visual Basic 2.2 Visual Basic Controls 2.3 Visual Basic Events 1 2.1 An Introduction to Visual Basic 2010 Why Windows and Why Visual
More informationREVIEW OF CHAPTER 1 1
1 REVIEW OF CHAPTER 1 Trouble installing/accessing Visual Studio? 2 Computer a device that can perform calculations and make logical decisions much faster than humans can Computer programs a sequence of
More informationReview. October 20, 2006
Review October 20, 2006 1 A Gentle Introduction to Programming A Program (aka project, application, solution) At a very general level there are 3 steps to program development Determine output Determine
More informationChapter 3. Fundamentals of Programming in Visual Basic
Page 1 of 114 [Page 41] Chapter 3. Fundamentals of Programming in Visual Basic (This item omitted from WebBook edition) 3.1 Visual Basic Controls 42 Starting a New Visual Basic Program A Text Box Walkthrough
More informationSTUDENT SOLUTIONS MANUAL
Student Solutions Manual (Page 1 of 211) STUDENT SOLUTIONS MANUAL to accompany An Introduction to Programming Using Visual Basic 2010, 8th Edition by David I. Schneider Student Solutions Manual (Page 2
More informationVisual Basic distinguishes between a number of fundamental data types. Of these, the ones we will use most commonly are:
Chapter 3 4.2, Data Types, Arithmetic, Strings, Input Data Types Visual Basic distinguishes between a number of fundamental data types. Of these, the ones we will use most commonly are: Integer Long Double
More informationProgram and Graphical User Interface Design
CHAPTER 2 Program and Graphical User Interface Design OBJECTIVES You will have mastered the material in this chapter when you can: Open and close Visual Studio 2010 Create a Visual Basic 2010 Windows Application
More informationCIS 3260 Intro. to Programming with C#
Running Your First Program in Visual C# 2008 McGraw-Hill 2010 The McGraw-Hill Companies, Inc. All rights reserved. Run Visual Studio Start a New Project Select File/New/Project Visual C# and Windows must
More informationInput/Output. Introduc3on
Input/Output CE 311 K - Introduc0on to Computer Methods Daene C. McKinney Forma9ng Numbers Input From Files Output To Files Input Boxes Introduc3on 1 Forma6ng Numbers Display numbers in familiar formats
More informationOutline. Data and Operations. Data Types. Integral Types
Outline Data and Operations Data Types Arithmetic Operations Strings Variables Declaration Statements Named Constant Assignment Statements Intrinsic (Built-in) Functions Data and Operations Data and Operations
More informationVisual Basic.NET. 1. Which language is not a true object-oriented programming language?
Visual Basic.NET Objective Type Questions 1. Which language is not a true object-oriented programming language? a.) VB.NET b.) VB 6 c.) C++ d.) Java Answer: b 2. A GUI: a.) uses buttons, menus, and icons.
More informationAdditional Controls & Objects
Additional Controls & Objects November 8, 2006 Chapter 9 - VB 2005 by Schneider 1 General Tips & Tricks Now is the time to start thinking about the final exam Continue (start!) doing questions from the
More informationTutorial 03 understanding controls : buttons, text boxes
Learning VB.Net Tutorial 03 understanding controls : buttons, text boxes Hello everyone welcome to vb.net tutorials. These are going to be very basic tutorials about using the language to create simple
More informationADMIN STUFF. Assignment #1 due. Assignment #2. Midterm. Posted to website Due Oct 11. Review session Oct 16 Midterm in class Oct 18 [2 hours long]
TODAY S QUOTE Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are by definition not smart enough to debug it. (Brian Kernighan)
More informationFundamentals of Programming Session 4
Fundamentals of Programming Session 4 Instructor: Reza Entezari-Maleki Email: entezari@ce.sharif.edu 1 Fall 2011 These slides are created using Deitel s slides, ( 1992-2010 by Pearson Education, Inc).
More informationCOPYRIGHTED MATERIAL. Visual Basic: The Language. Part 1
Part 1 Visual Basic: The Language Chapter 1: Getting Started with Visual Basic 2010 Chapter 2: Handling Data Chapter 3: Visual Basic Programming Essentials COPYRIGHTED MATERIAL Chapter 1 Getting Started
More informationLESSON B. The Toolbox Window
The Toolbox Window After studying Lesson B, you should be able to: Add a control to a form Set the properties of a label, picture box, and button control Select multiple controls Center controls on the
More informationVARIABLES. 1. STRINGS Data with letters and/or characters 2. INTEGERS Numbers without decimals 3. FLOATING POINT NUMBERS Numbers with decimals
VARIABLES WHAT IS A VARIABLE? A variable is a storage location in the computer s memory, used for holding information while the program is running. The information that is stored in a variable may change,
More informationGUI Design and Event- Driven Programming
4349Book.fm Page 1 Friday, December 16, 2005 1:33 AM Part 1 GUI Design and Event- Driven Programming This Section: Chapter 1: Getting Started with Visual Basic 2005 Chapter 2: Visual Basic: The Language
More informationWyo VB Lecture Notes - Objects, Methods, & Properties
Wyo VB Lecture Notes - Objects, Methods, & Properties Objective #1: Use forms appropriately. A form is a basic building block of a Visual Basic project. Eventually, you'll be creating projects that consist
More informationChapter 2.4: Common facilities of procedural languages
Chapter 2.4: Common facilities of procedural languages 2.4 (a) Understand and use assignment statements. Assignment An assignment is an instruction in a program that places a value into a specified variable.
More informationGetting Started with Visual Basic.NET
Visual Basic.NET Programming for Beginners This Home and Learn computer course is an introduction to Visual Basic.NET programming for beginners. This course assumes that you have no programming experience
More informationFull file at https://fratstock.eu Programming in Visual Basic 2010
OBJECTIVES: Chapter 2 User Interface Design Upon completion of this chapter, your students will be able to 1. Use text boxes, masked text boxes, rich text boxes, group boxes, check boxes, radio buttons,
More informationVisual C# Instructor s Manual Table of Contents
Visual C# 2005 2-1 Chapter 2 Using Data At a Glance Instructor s Manual Table of Contents Overview Objectives s Quick Quizzes Class Discussion Topics Additional Projects Additional Resources Key Terms
More informationSkill Area 336 Explain Essential Programming Concept. Programming Language 2 (PL2)
Skill Area 336 Explain Essential Programming Concept Programming Language 2 (PL2) 336.2-Apply Basic Program Development Techniques 336.2.1 Identify language components for program development 336.2.2 Use
More informationText box. Command button. 1. Click the tool for the control you choose to draw in this case, the text box.
Visual Basic Concepts Hello, Visual Basic See Also There are three main steps to creating an application in Visual Basic: 1. Create the interface. 2. Set properties. 3. Write code. To see how this is done,
More informationEfficiency of Bubble and Shell Sorts
REVIEW Efficiency of Bubble and Shell Sorts Array Elements Bubble Sort Comparisons Shell Sort Comparisons 5 10 17 10 45 57 15 105 115 20 190 192 25 300 302 30 435 364 50 1225 926 100 4950 2638 500 124,750
More informationThe Filter Property Selecting a File The Save Menu The SaveFileDialog Control The Edit Menu The Copy Menu...
Part One Contents Introduction...3 What you need to do the course...3 The Free Visual Basic Express Edition...3 Additional Files...4 Getting Started...5 The Toolbox...9 Properties...15 Saving your work...21
More informationDisclaimer. Trademarks. Liability
Disclaimer II Visual Basic 2010 Made Easy- A complete tutorial for beginners is an independent publication and is not affiliated with, nor has it been authorized, sponsored, or otherwise approved by Microsoft
More informationLecture 05 I/O statements Printf, Scanf Simple statements, Compound statements
Programming, Data Structures and Algorithms Prof. Shankar Balachandran Department of Computer Science and Engineering Indian Institute of Technology, Madras Lecture 05 I/O statements Printf, Scanf Simple
More informationComputer Science 110. NOTES: module 8
Computer Science 110 NAME: NOTES: module 8 Introducing Objects As we have seen, when a Visual Basic application runs, it displays a screen that is similar to the Windows-style screens. When we create a
More informationIntroduction. Getting Started with Visual Basic Steps:-
Introduction Getting Started with Visual Basic 2008 Steps:- 1. go to http://www.microsoft.com/express/download/#webinstall and download Visual Basic 2008 and save the file in a location. 2. Locate the
More informationCOMP1730/COMP6730 Programming for Scientists. Data: Values, types and expressions.
COMP1730/COMP6730 Programming for Scientists Data: Values, types and expressions. Lecture outline * Data and data types. * Expressions: computing values. * Variables: remembering values. What is data?
More informationProgramming for Engineers Introduction to C
Programming for Engineers Introduction to C ICEN 200 Spring 2018 Prof. Dola Saha 1 Simple Program 2 Comments // Fig. 2.1: fig02_01.c // A first program in C begin with //, indicating that these two lines
More informationA Complete Tutorial for Beginners LIEW VOON KIONG
I A Complete Tutorial for Beginners LIEW VOON KIONG Disclaimer II Visual Basic 2008 Made Easy- A complete tutorial for beginners is an independent publication and is not affiliated with, nor has it been
More informationIT 374 C# and Applications/ IT695 C# Data Structures
IT 374 C# and Applications/ IT695 C# Data Structures Module 2.1: Introduction to C# App Programming Xianrong (Shawn) Zheng Spring 2017 1 Outline Introduction Creating a Simple App String Interpolation
More informationVisual C# Program: Simple Game 3
C h a p t e r 6C Visual C# Program: Simple Game 3 In this chapter, you will learn how to use the following Visual C# Application functions to World Class standards: Opening Visual C# Editor Beginning a
More information2 nd Week Lecture Notes
2 nd Week Lecture Notes Scope of variables All the variables that we intend to use in a program must have been declared with its type specifier in an earlier point in the code, like we did in the previous
More informationStart Visual Basic. Session 1. The User Interface Form (I/II) The Visual Basic Programming Environment. The Tool Box (I/II)
Session 1 Start Visual Basic Use the Visual Basic programming environment Understand Essential Visual Basic menu commands and programming procedure Change Property setting Use Online Help and Exit Visual
More informationBASIC COMPUTATION. public static void main(string [] args) Fundamentals of Computer Science I
BASIC COMPUTATION x public static void main(string [] args) Fundamentals of Computer Science I Outline Using Eclipse Data Types Variables Primitive and Class Data Types Expressions Declaration Assignment
More information3 The Building Blocks: Data Types, Literals, and Variables
chapter 3 The Building Blocks: Data Types, Literals, and Variables 3.1 Data Types A program can do many things, including calculations, sorting names, preparing phone lists, displaying images, validating
More informationAccess Intermediate
Access 2013 - Intermediate 103-134 Advanced Queries Quick Links Overview Pages AC124 AC125 Selecting Fields Pages AC125 AC128 AC129 AC131 AC238 Sorting Results Pages AC131 AC136 Specifying Criteria Pages
More informationVISUAL BASIC 2005 EXPRESS: NOW PLAYING
VISUAL BASIC 2005 EXPRESS: NOW PLAYING by Wallace Wang San Francisco ADVANCED DATA STRUCTURES: QUEUES, STACKS, AND HASH TABLES Using a Queue To provide greater flexibility in storing information, Visual
More informationFundamentals of Programming. Lecture 3: Introduction to C Programming
Fundamentals of Programming Lecture 3: Introduction to C Programming Instructor: Fatemeh Zamani f_zamani@ce.sharif.edu Sharif University of Technology Computer Engineering Department Outline A Simple C
More information2 USING VB.NET TO CREATE A FIRST SOLUTION
25 2 USING VB.NET TO CREATE A FIRST SOLUTION LEARNING OBJECTIVES GETTING STARTED WITH VB.NET After reading this chapter, you will be able to: 1. Begin using Visual Studio.NET and then VB.NET. 2. Point
More informationVisual BASIC Creating an Application. Choose File New Project from the menu
Creating an Application Choose File New Project from the menu Choose Windows Application Name the project Copyright Project Place a check in the Create directory for solution box Click Browse Choose and/or
More informationC++ PROGRAMMING. For Industrial And Electrical Engineering Instructor: Ruba A. Salamh
C++ PROGRAMMING For Industrial And Electrical Engineering Instructor: Ruba A. Salamh CHAPTER TWO: Fundamental Data Types Chapter Goals In this chapter, you will learn how to work with numbers and text,
More informationRev. B 12/16/2015 Downers Grove Public Library Page 1 of 40
Objectives... 3 Introduction... 3 Excel Ribbon Components... 3 File Tab... 4 Quick Access Toolbar... 5 Excel Worksheet Components... 8 Navigating Through a Worksheet... 9 Downloading Templates... 9 Using
More informationAngela Z: A Language that facilitate the Matrix wise operations Language Reference Manual
Angela Z: A Language that facilitate the Matrix wise operations Language Reference Manual Contents Fei Liu, Mengdi Zhang, Taikun Liu, Jiayi Yan 1. Language definition 3 1.1. Usage 3 1.2. What special feature
More informationVisual Basic for Applications
Visual Basic for Applications Programming Damiano SOMENZI School of Economics and Management Advanced Computer Skills damiano.somenzi@unibz.it Week 1 Outline 1 Visual Basic for Applications Programming
More informationLESSON A. The Splash Screen Application
The Splash Screen Application LESSON A LESSON A After studying Lesson A, you should be able to: Start and customize Visual Studio 2010 or Visual Basic 2010 Express Create a Visual Basic 2010 Windows application
More information2.1. Chapter 2: Parts of a C++ Program. Parts of a C++ Program. Introduction to C++ Parts of a C++ Program
Chapter 2: Introduction to C++ 2.1 Parts of a C++ Program Copyright 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 2-1 Parts of a C++ Program Parts of a C++ Program // sample C++ program
More informationLanguage Basics. /* The NUMBER GAME - User tries to guess a number between 1 and 10 */ /* Generate a random number between 1 and 10 */
Overview Language Basics This chapter describes the basic elements of Rexx. It discusses the simple components that make up the language. These include script structure, elements of the language, operators,
More informationTSM Report Designer. Even Microsoft Excel s Data Import add-in can be used to extract TSM information into an Excel spread sheet for reporting.
TSM Report Designer The TSM Report Designer is used to create and modify your TSM reports. Each report in TSM prints data found in the databases assigned to that report. TSM opens these databases according
More informationChapter 17. Fundamental Concepts Expressed in JavaScript
Chapter 17 Fundamental Concepts Expressed in JavaScript Learning Objectives Tell the difference between name, value, and variable List three basic data types and the rules for specifying them in a program
More informationCSc 10200! Introduction to Computing. Lecture 2-3 Edgardo Molina Fall 2013 City College of New York
CSc 10200! Introduction to Computing Lecture 2-3 Edgardo Molina Fall 2013 City College of New York 1 C++ for Engineers and Scientists Third Edition Chapter 2 Problem Solving Using C++ 2 Objectives In this
More informationVARIABLES. Aim Understanding how computer programs store values, and how they are accessed and used in computer programs.
Lesson 2 VARIABLES Aim Understanding how computer programs store values, and how they are accessed and used in computer programs. WHAT ARE VARIABLES? When you input data (i.e. information) into a computer
More informationVisual Basic 2008 Anne Boehm
TRAINING & REFERENCE murach s Visual Basic 2008 Anne Boehm (Chapter 3) Thanks for downloading this chapter from Murach s Visual Basic 2008. We hope it will show you how easy it is to learn from any Murach
More informationCorel Ventura 8 Introduction
Corel Ventura 8 Introduction Training Manual A! ANZAI 1998 Anzai! Inc. Corel Ventura 8 Introduction Table of Contents Section 1, Introduction...1 What Is Corel Ventura?...2 Course Objectives...3 How to
More informationFINAL CHAPTER. Web Applications
1 FINAL CHAPTER Web Applications WEB PROGRAMS The programs in this chapter require the use of either Visual Web Developer 2010 (packaged with this textbook) or the complete version of Visual Studio 2010.
More informationChapter 2: Using Data
Chapter 2: Using Data Declaring Variables Constant Cannot be changed after a program is compiled Variable A named location in computer memory that can hold different values at different points in time
More informationVisual Basic 2008 The programming part
Visual Basic 2008 The programming part Code Computer applications are built by giving instructions to the computer. In programming, the instructions are called statements, and all of the statements that
More informationProgramming Language 2 (PL2)
Programming Language 2 (PL2) 337.1.1 - Explain rules for constructing various variable types of language 337.1.2 Identify the use of arithmetical and logical operators 337.1.3 Explain the rules of language
More informationAccess 2003 Introduction to Report Design
Access 2003 Introduction to Report Design TABLE OF CONTENTS CREATING A REPORT IN DESIGN VIEW... 3 BUILDING THE REPORT LAYOUT... 5 SETTING THE REPORT WIDTH... 5 DISPLAYING THE FIELD LIST... 5 WORKING WITH
More informationTable of Contents Date(s) Title/Topic Page #s. Abstraction
Table of Contents Date(s) Title/Topic Page #s 9/10 2.2 String Literals, 2.3 Variables and Assignment 34-35 Abstraction An abstraction hides (or suppresses) the right details at the right time An object
More informationAgenda & Reading. VB.NET Programming. Data Types. COMPSCI 280 S1 Applications Programming. Programming Fundamentals
Agenda & Reading COMPSCI 80 S Applications Programming Programming Fundamentals Data s Agenda: Data s Value s Reference s Constants Literals Enumerations Conversions Implicitly Explicitly Boxing and unboxing
More informationData Types. Strings Variables Declaration Statements Named Constant Assignment Statements Intrinsic (Built-in) Functions
Data and Operations Outline Data Types Arithmetic Operations Strings Variables Declaration Statements Named Constant Assignment Statements Intrinsic (Built-in) Functions Data and Operations 1 Data and
More informationRepetition. October 4, Chapter 6 - VB 2005 by Schneider 1
Repetition October 4, 2006 Chapter 6 - VB 2005 by Schneider 1 Chapter 6 Repetition 6.1 Do Loops 6.2 Processing Lists of Data with Do Loops 6.3 For...Next Loops 6.4 A Case Study: Analyze a Loan Chapter
More informationIntroduction to C# Applications
1 2 3 Introduction to C# Applications OBJECTIVES To write simple C# applications To write statements that input and output data to the screen. To declare and use data of various types. To write decision-making
More informationCustomization Manager
Customization Manager Release 2015 Disclaimer This document is provided as-is. Information and views expressed in this document, including URL and other Internet Web site references, may change without
More informationC: How to Program. Week /Mar/05
1 C: How to Program Week 2 2007/Mar/05 Chapter 2 - Introduction to C Programming 2 Outline 2.1 Introduction 2.2 A Simple C Program: Printing a Line of Text 2.3 Another Simple C Program: Adding Two Integers
More informationChapter 2 Visual Basic Interface
Visual Basic Interface Slide 1 Windows GUI A GUI is a graphical user interface. The interface is what appears on the screen when an application is running. A GUI is event-driven, which means it executes
More informationIntroduction to the Visual Studio.NET Integrated Development Environment IDE. CSC 211 Intermediate Programming
Introduction to the Visual Studio.NET Integrated Development Environment IDE CSC 211 Intermediate Programming Visual Studio.NET Integrated Development Environment (IDE) The Start Page(Fig. 1) Helpful links
More informationUNIT- 3 Introduction to C++
UNIT- 3 Introduction to C++ C++ Character Sets: Letters A-Z, a-z Digits 0-9 Special Symbols Space + - * / ^ \ ( ) [ ] =!= . $, ; : %! &? _ # = @ White Spaces Blank spaces, horizontal tab, carriage
More informationLearning VB.Net. Tutorial 17 Classes
Learning VB.Net Tutorial 17 Classes Hello everyone welcome to vb.net tutorials. These are going to be very basic tutorials about using the language to create simple applications, hope you enjoy it. If
More informationArithmetic Expressions in C
Arithmetic Expressions in C Arithmetic Expressions consist of numeric literals, arithmetic operators, and numeric variables. They simplify to a single value, when evaluated. Here is an example of an arithmetic
More informationDepartme and. Computer. CS Intro to. Science with. Objectives: The main. for a problem. of Programming. Syntax Set of rules Similar to.
_ Unit 2: Visual Basic.NET, pages 1 of 13 Departme ent of Computer and Mathematical Sciences CS 1408 Intro to Computer Science with Visual Basic.NET 4 Lab 4: Getting Started with Visual Basic.NET Programming
More informationFull file at
Java Programming: From Problem Analysis to Program Design, 3 rd Edition 2-1 Chapter 2 Basic Elements of Java At a Glance Instructor s Manual Table of Contents Overview Objectives s Quick Quizzes Class
More informationCiviX Author Custom Actions Cheat Sheet
Amendment Bylaw Elements CiviX Author Custom Actions Cheat Sheet 1 Alt + 6 Add Amendment Explanatory Note Add an amendment explan note which explains the purpose of the amendment - Occurs above an amendment
More informationIntroduction to Data Entry and Data Types
212 Chapter 4 Variables and Arithmetic Operations STEP 1 With the Toolbox visible (see Figure 4-21), click the Toolbox Close button. The Toolbox closes and the work area expands in size.to reshow the Toolbox
More informationDataflow Editor User Guide
- Cisco EFF, Release 1.0.1 Cisco (EFF) 1.0.1 Revised: August 25, 2017 Conventions This document uses the following conventions. Convention bold font italic font string courier font Indication Menu options,
More informationCSC Web Programming. Introduction to JavaScript
CSC 242 - Web Programming Introduction to JavaScript JavaScript JavaScript is a client-side scripting language the code is executed by the web browser JavaScript is an embedded language it relies on its
More informationAfter completing this appendix, you will be able to:
1418835463_AppendixA.qxd 5/22/06 02:31 PM Page 879 A P P E N D I X A A DEBUGGING After completing this appendix, you will be able to: Describe the types of programming errors Trace statement execution
More informationChapter 2. Creating Applications with Visual Basic Pearson Addison-Wesley. All rights reserved. Addison Wesley is an imprint of
Chapter 2 Creating Applications with Visual Basic Addison Wesley is an imprint of 2011 Pearson Addison-Wesley. All rights reserved. Section 2.1 FOCUS ON PROBLEM SOLVING: BUILDING THE DIRECTIONS APPLICATION
More informationPython Intro GIS Week 1. Jake K. Carr
GIS 5222 Week 1 Why Python It s simple and easy to learn It s free - open source! It s cross platform IT S expandable!! Why Python: Example Consider having to convert 1,000 shapefiles into feature classes
More informationDefine a method vs. calling a method. Chapter Goals. Contents 1/21/13
CHAPTER 2 Define a method vs. calling a method Line 3 defines a method called main Line 5 calls a method called println, which is defined in the Java library You will learn later how to define your own
More informationTOPIC 2 INTRODUCTION TO JAVA AND DR JAVA
1 TOPIC 2 INTRODUCTION TO JAVA AND DR JAVA Notes adapted from Introduction to Computing and Programming with Java: A Multimedia Approach by M. Guzdial and B. Ericson, and instructor materials prepared
More informationDive Into Visual C# 2008 Express
1 2 2 Dive Into Visual C# 2008 Express OBJECTIVES In this chapter you will learn: The basics of the Visual Studio Integrated Development Environment (IDE) that assists you in writing, running and debugging
More informationMicrosoft Visual Basic 2005: Reloaded
Microsoft Visual Basic 2005: Reloaded Second Edition Chapter 3 Variables, Constants, Methods, and Calculations Objectives After studying this chapter, you should be able to: Declare variables and named
More information1: Getting Started with Microsoft Excel
1: Getting Started with Microsoft Excel The Workspace 1 Menu commands 2 Toolbars 3 Cell References 4 Cell Entries 4 Formatting 5 Saving and Opening Workbook Files 7 The Workspace Figure 1 shows the Microsoft
More informationCOMP 202 Java in one week
COMP 202 Java in one week... Continued CONTENTS: Return to material from previous lecture At-home programming exercises Please Do Ask Questions It's perfectly normal not to understand everything Most of
More informationChapter 2 Working with Data Types and Operators
JavaScript, Fourth Edition 2-1 Chapter 2 Working with Data Types and Operators At a Glance Instructor s Manual Table of Contents Overview Objectives Teaching Tips Quick Quizzes Class Discussion Topics
More informationContents. Jairo Pava COMS W4115 June 28, 2013 LEARN: Language Reference Manual
Jairo Pava COMS W4115 June 28, 2013 LEARN: Language Reference Manual Contents 1 Introduction...2 2 Lexical Conventions...2 3 Types...3 4 Syntax...3 5 Expressions...4 6 Declarations...8 7 Statements...9
More informationJAVA Programming Fundamentals
Chapter 4 JAVA Programming Fundamentals By: Deepak Bhinde PGT Comp.Sc. JAVA character set Character set is a set of valid characters that a language can recognize. It may be any letter, digit or any symbol
More informationAccess Intermediate
Access 2010 - Intermediate 103-134 Advanced Queries Quick Links Overview Pages AC116 AC117 Selecting Fields Pages AC118 AC119 AC122 Sorting Results Pages AC125 AC126 Specifying Criteria Pages AC132 AC134
More informationIntroduction to TURING
Introduction to TURING Comments Some code is difficult to understand, even if you understand the language it is written in. To that end, the designers of programming languages have allowed us to comment
More informationOffice Access. Intermediate
Office 2007 Access Intermediate May 2010 Contents INTRODUCTION... 1 DATABASE CONCEPTS... 3 WHAT IS A DATABASE?... 3 DATABASE OBJECTS... 3 WHAT IS A PRIMARY KEY?... 4 WHAT IS A FOREIGN KEY?... 4 WHAT IS
More information