Chuck Easttom
Author, Consultant, Computer Expert
C++ Programming Fundamentals
| chapter 2 | Image 2.7 is wrong. It should be
|
| Chapter 3 |
In Chapter 3, page 9, you talk about String Properties and Methods, and the C-style string function that are still used frequently. In Example 3.8, That line should be strcat(firststring,secondstring) then of course cout << "Both strings you entered are " << firststring<< "\n"; What happens with strcat is the second string is appended to the first. There is no need for a third string. |
Learn VB.Net 1st Edition
| Chapter 1 and 2 |
|
| Chapter 5 |
The database example (5.1) works fine up to the point where you fill in the code for the buttons. The appropriate code for
the form load, and all click events is shown here: Public Class Form1 Inherits System.Windows.Forms.Form Dim dbindingmanager As BindingManagerBase #Region " Windows Form Designer generated code " #End Region Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load ' This code is needed to fill in the data set ' with data from the underlying database. OleDbDataAdapter1.Fill(DataSet11) ' set the binding manager dbindingmanager = Me.BindingContext(DataSet11, "students") End Sub Private Sub btnnext_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnnext.Click dbindingmanager.Position += 1 End Sub Private Sub btnprevious_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnprevious.Click dbindingmanager.Position -= 1 End Sub End Class Private Sub btnadd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnadd.Click dbindingmanager.AddNew() End Sub Private Sub btndelete_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btndelete.Click dbindingmanager.RemoveAt(dbindingmanager.Position) End Sub Private Sub btnupdate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnupdate.Click ' you must stop editing before updating dbindingmanager.EndCurrentEdit() 'Update from the dataset OleDbDataAdapter1.Update(DataSet11.students) 'clear and refill dataset DataSet11.Clear() OleDbDataAdapter1.Fill(DataSet11) End Sub |
|
If you are aware of any errors in any books, please let me know:Hey Chuck,I found an error!
Chuck Easttom's Home Page