一句Linq 法的迷思
Dim nameq = From data In arlis Where data.IndexOf(Me.Controls("TextBox" & intCount).Text) <> -1 Select data
在下上面一句程式 有疑
http://msdn.microsoft.com/zh-tw/library/bb763068.aspx
在篇只有看到
Where 子句 (Visual Basic)
。 指定查的件。 例如:
VB
' Returns all product names for which the Category of
' the product is "Beverages".
Dim names = From product In products
Where product.Category = "Beverages"
Select product.Name
法 但上面那句的法 加 <> -1 有什意?
[解决办法]
意义是找不到输入的文本时,才输出