Private Sub LoadScore()
Dim sql As String = "SELECT names,score FROM HighScore"
sql &= " Where (level ='" & Level & "')"
sql &= " ORDER BY score DESC"
Dim cmd As New OleDbCommand(sql, conn)
Dim da As New OleDbDataAdapter(cmd)
Dim datascore As New DataSet
da.Fill(datascore, "HighScore")
ScoreLoad(1) = data.Tables("HighScore").Rows(0)("score")
ScoreLoad(2) = data.Tables("HighScore").Rows(1)("score")
ScoreLoad(3) = data.Tables("HighScore").Rows(2)("score")
ScoreLoad(4) = data.Tables("HighScore").Rows(3)("score")
ScoreLoad(5) = data.Tables("HighScore").Rows(4)("score")
End Sub
เกิด error ขึ้นอะครับช่วยดูหน่อยนะครับ
Tag : .NET, VB.NET, VS 2005 (.NET 2.x), VS 2008 (.NET 3.x)