0
我得到一個錯誤1消息,指出」類型'布爾'的值不能轉換爲'System.Data.DataRow「。我做一個轉換值類型布爾值的System.Data.DataRow?試過,但無濟於事。類型'布爾'值不能轉換爲'System.Data.DataRow「
這裏是我的代碼
Dim newRow As DataRow
newRow = Database51DataSet1.Tables(0).NewRow
newRow.Item(0) = TextBox3.Text
newRow = ("orderID") = (TextBox3.Text.Trim() = "0"(Convert.ToInt32(TextBox3.Text)))
newRow.Item(1) = TextBox4.Text
newRow.Item(2) = TextBox5.Text
Database51DataSet1.Tables(0).Rows.Add(newRow)
你能解釋一下你在上面的代碼中的第四行的意圖? – Steve
下一次,請告訴我們您在哪條線路上發生了錯誤。 –