Channel 9 Videos

VBTeam

Some videos on VB futures have been posted on Channel9 at:

·         Paul Vick and Amanda Silver – VB Language Futures:

https://channel9.msdn.com/showpost.aspx?postid=116700

·         Paul Vick and Erik Meijer – Dynamic Programming in Visual Basic

https://channel9.msdn.com/showpost.aspx?postid=116702

 

As for the last little bit of code I flubbed during our interview, the code I should have written is:

        For Each Item In PO…item

            Dim Price As Double = First(Item.price)

            Dim Quantity As Integer = First(Item.quantity)

            Total += Quantity * Price

        Next

 

The above works and is compatible (and ships) with the Visual Basic 9.0 tech preview. Currently, the Element function returns and IEnumerable(Of Element). We’re looking at ways that the call to First (similar to SQL’s Top) can be removed so that you can write:

        For Each Item In PO…item

            Dim Price As Double = Item.price

            Dim Quantity As Integer = Item.quantity

            Total += Quantity * Price

        Next

 

Please try out the bits and send us your feedback!

 

And stay tuned for more code samples, releases, articles, and discussion on Visual Basic futures.

-Amanda

 

 

0 comments

Leave a comment

Feedback usabilla icon