Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Declaration of link objects
Message
From
07/11/2011 14:03:49
 
 
General information
Forum:
ASP.NET
Category:
LINQ
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01528239
Message ID:
01528297
Views:
38
>If the query returns an anonymous type then you can't. If the query yields a known type then something like this will work:
Dim list As New List(Of String)() From { _
>	"One", _
>	"Two", _
>	"Three" _
>}
>Dim s As IEnumerable(Of String)
>s = From x In list select x
(Disclaimer: used a C# -> VB converter and assuming the translation is correct)

Thanks
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform