Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Zie verdere documentatie https://docs.microsoft.com/en-us/dotnet/api/system.data.datatable?view=netcore-3.1.

Enkele voorbeelden hoe dit binnen de U-turn gebruikt kan worden zijn:

Aanmaken DataTable

Code Block
#Create DataTable
dt = System.Data.DataTable()
#Create DataColumn
dc = System.Data.DataColumn("id")
#Add column to table
dt.Columns.Add(dc)

#Create row based on table structure
row = dt.NewRow()

#Set value in column/cell
row["id"] = 1

#Add row to table
dt.Rows.Add(row)

#Get result from first row, column with name id
dt.Rows[0]["id"]

...