Database Save
Database Save
NET Guide
Example:
1
Declares the procedure pUpdate
2
Declare a variable to store the row of type Data.DataRow
3
The WITH statement allows what follows to be abbreviated so that a .
without preceding text will be replaced by the WITH content eg:
.NewRow will be replaced by objDS.Tables(0).NewRow
4
A new row is assigned to the variable
5
The field should relate to the field in the database
6
The text contents of a text box storing the player name is assigned to the
field PlayerName of the new row
7
The text contents of a text box storing the player score is assigned to the
field Score of the new row
8
The new row is added to the dataset (DS)
9
Identifies the end of the WITH statement. From this point, a . without
preceding text will be treated as an error
10
Saves the dataset back to the specified table in the database
11
The table name in the database
Page 1 of 1