Private Sub RunOrd()
Dim idstr As String = "1000"
Dim result = From Customer In db.Orders _
Select Customer
For Each cus In result
idstr = cus.OrderID.ToString()
Next
Dim id As Integer = CInt(idstr) + 1
runid = id.ToString()
End Sub
พอจะมีแนวทางหรือตัวอย่างยังไงบ้างครับ
Tag : .NET, Web (ASP.NET), LINQ, VS 2010 (.NET 4.x)
If CheckBox1.Checked = True Then
Dim id As Integer = CInt(aaa) + 1
runid = id.ToString()
Else
Dim id As Integer = CInt(aaa)
runid = id.ToString()
End If