创建表,创建行,创建列(VB.NET)

类别:.NET开发 点击:0 评论:0 推荐:

        Dim dt As New DataTable

        dt.Columns.Add(New DataColumn("UserID"))

        dt.Columns.Add(New DataColumn("IPP"))

        Dim dr As DataRow = dt.NewRow

        dr.Item("UserID") = "324"

        dr.Item("IPP") = "210.74.232.26:3824"

        dt.Rows.Add(dr)

        MsgBox(dt.Rows(0).Item("IPP"))

本文地址:http://com.8s8s.com/it/it43127.htm