| Variable Name | Object Type |
|---|---|
| c | Connection |
| sc | SelectionCommand |
| da | DataAdapter |
| ds | DataSet |
| t | TextBox |
| tn | TableName |
| cn | ColumnName |
| s | String |
| n | Integer |
| d | Double |
| dt | DataTable |
| ti | TableIndex |
| dr | DataRow |
| ri | RowIndex |
| f | FieldInRow |
| fi | FieldIndex |
Dim c As New OleDbConnection
c.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
    "Data Source=c:\Person.mdb"
c.Open()
Dim sc As OleDbCommand
sc = c.CreateCommand()
sc.CommandType = CommandType.Text
sc.CommandText = "SELECT * FROM PersonData"
Dim da As New OleDbDataAdapter
da.SelectCommand = sc
Dim ds As New DataSet
Dim n As Integer
n = da.Fill(ds, "tn")
Dim b As New Binding("Text", ds, "tn.cn")
t.DataBindings.Add(b)
' Move to first row of dataset
' Move to next row of dataset.
' Move to previous row of dataset.
Me.BindingContext(ds, "tn").Position = 0
Me.BindingContext(ds, "tn").Position += 1
Me.BindingContext(ds, "tn").Position -= 1
f = ds.Tables(ti).Rows(ri).ItemArray(fi)
Dim dt As DataTable = ds.Tables(ti)
Dim dr As DataRow = dt.Rows(ri)
Dim f As Object = dr.ItemArray(fi)