Channel 9 Videos

Channel 9 Videos

  • Comments 2

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

·         Paul Vick and Amanda Silver - VB Language Futures:

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

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

http://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

 

 

Leave a Comment
  • Please add 5 and 7 and type the answer here:
  • Post
  • Welcome to the Microsoft Data blog. I’m Samuel Druker and I lead the group that’s responsible for building...
  • Welcome to the Microsoft Data blog. I’m Samuel Druker and I lead a group that’s responsible for building...
Page 1 of 1 (2 items)