{"id":6993,"date":"2005-09-20T02:49:00","date_gmt":"2005-09-20T02:49:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/vbteam\/2005\/09\/20\/channel-9-videos\/"},"modified":"2024-07-05T14:54:19","modified_gmt":"2024-07-05T21:54:19","slug":"channel-9-videos","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/vbteam\/channel-9-videos\/","title":{"rendered":"Channel 9 Videos"},"content":{"rendered":"<p><font face=\"Arial\"><\/p>\n<p><span>Some videos on VB futures have been posted on Channel9 at:<\/span><span><\/p>\n<p><\/span><\/p>\n<p><span><span>&middot;<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><u><span><a href=\"https:\/\/channel9.msdn.com\/showpost.aspx?postid=116700\">Paul Vick and Amanda Silver &#8211; VB Language Futures<\/a>: <\/p>\n<p><\/span><\/u><\/p>\n<p><span><a href=\"https:\/\/channel9.msdn.com\/showpost.aspx?postid=116700\"><span>https:\/\/channel9.msdn.com\/showpost.aspx?postid=116700<\/span><\/a><\/p>\n<p><\/span><\/p>\n<p><span><span><span><font color=\"#0000ff\">&middot;<span><font size=\"2\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<u> <\/u><\/font><\/span><\/font><\/span><\/span><a href=\"https:\/\/channel9.msdn.com\/showpost.aspx?postid=116702\"><font size=\"2\">Paul Vick and Erik Meijer &#8211; Dynamic Programming in Visual Basic<\/p>\n<p><\/font><\/a><\/span><\/p>\n<p><span><a href=\"https:\/\/channel9.msdn.com\/showpost.aspx?postid=116702\"><span>https:\/\/channel9.msdn.com\/showpost.aspx?postid=116702<\/span><\/a><\/p>\n<p><\/span><\/p>\n<p><span><\/p>\n<p>&nbsp;<\/p>\n<p><\/span><\/p>\n<p class=\"MsoNormal\"><span>As for the last little bit of code I flubbed during our interview, the code I should have written is:<\/p>\n<p><\/span><\/p>\n<div>\n<p class=\"MsoNormal\"><span><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span>For<\/span> <span>Each<\/span> Item <span>In<\/span> PO&#8230;item<\/p>\n<p><\/span><\/p>\n<p class=\"MsoNormal\"><span><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span>Dim<\/span> Price <span>As<\/span> <span>Double<\/span> = First(Item.price)<\/p>\n<p><\/span><\/p>\n<p class=\"MsoNormal\"><span><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span>Dim<\/span> Quantity <span>As<\/span> <span>Integer<\/span> = First(Item.quantity)<\/p>\n<p><\/span><\/p>\n<p class=\"MsoNormal\"><span><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>Total += Quantity * Price<\/p>\n<p><\/span><\/p>\n<p class=\"MsoNormal\"><span><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span>Next<\/span><\/span><span><\/p>\n<p><\/span><\/p>\n<\/div>\n<p class=\"MsoNormal\"><span><\/p>\n<p>&nbsp;<\/p>\n<p><\/span><\/p>\n<p class=\"MsoNormal\"><span>The above works and is compatible (and ships) with the <a href=\"http:\/\/msdn.microsoft.com\/vbasic\/future\/\">Visual Basic 9.0 tech preview<\/a>. Currently, the Element function returns and IEnumerable(Of Element). We&rsquo;re looking at ways that the call to <font face=\"Courier New\">First<\/font> (similar to SQL&rsquo;s <font face=\"Courier New\">Top<\/font>) can be removed so that you can write:<\/p>\n<p><\/span><\/p>\n<div>\n<p class=\"MsoNormal\"><span><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span>For<\/span> <span>Each<\/span> Item <span>In<\/span> PO&#8230;item<\/p>\n<p><\/span><\/p>\n<p class=\"MsoNormal\"><span><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span>Dim<\/span> Price <span>As<\/span> <span>Double<\/span> = Item.price<\/p>\n<p><\/span><\/p>\n<p class=\"MsoNormal\"><span><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span>Dim<\/span> Quantity <span>As<\/span> <span>Integer<\/span> = Item.quantity<\/p>\n<p><\/span><\/p>\n<p class=\"MsoNormal\"><span><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>Total += Quantity * Price<\/p>\n<p><\/span><\/p>\n<p class=\"MsoNormal\"><span><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span>Next<\/span><\/span><span><\/p>\n<p><\/span><\/p>\n<\/div>\n<p class=\"MsoNormal\"><span><\/p>\n<p>&nbsp;<\/p>\n<p><\/span><\/p>\n<p class=\"MsoNormal\"><span>Please try out the bits and send us your feedback! <\/p>\n<p><\/span><\/p>\n<p class=\"MsoNormal\"><span><\/p>\n<p>&nbsp;<\/p>\n<p><\/span><\/p>\n<p class=\"MsoNormal\"><span>And stay tuned for more code samples, releases, articles, and discussion on Visual Basic futures. <\/p>\n<p><\/span><\/p>\n<p class=\"MsoNormal\"><span>-Amanda<\/p>\n<p><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><font face=\"Arial\"><\/font>&nbsp;<\/p>\n<p><\/font><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Some videos on VB futures have been posted on Channel9 at: &middot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Paul Vick and Amanda Silver &#8211; VB Language Futures: https:\/\/channel9.msdn.com\/showpost.aspx?postid=116700 &middot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Paul Vick and Erik Meijer &#8211; Dynamic Programming in Visual Basic https:\/\/channel9.msdn.com\/showpost.aspx?postid=116702 &nbsp; As for the last little bit of code I flubbed during our interview, the code I should have written [&hellip;]<\/p>\n","protected":false},"author":260,"featured_media":8818,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[192,195],"tags":[28,94,117],"class_list":["post-6993","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-featured","category-visual-basic","tag-amanda-silver","tag-linqvb9","tag-orcas"],"acf":[],"blog_post_summary":"<p>Some videos on VB futures have been posted on Channel9 at: &middot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Paul Vick and Amanda Silver &#8211; VB Language Futures: https:\/\/channel9.msdn.com\/showpost.aspx?postid=116700 &middot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Paul Vick and Erik Meijer &#8211; Dynamic Programming in Visual Basic https:\/\/channel9.msdn.com\/showpost.aspx?postid=116702 &nbsp; As for the last little bit of code I flubbed during our interview, the code I should have written [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/vbteam\/wp-json\/wp\/v2\/posts\/6993","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/vbteam\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/vbteam\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/vbteam\/wp-json\/wp\/v2\/users\/260"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/vbteam\/wp-json\/wp\/v2\/comments?post=6993"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/vbteam\/wp-json\/wp\/v2\/posts\/6993\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/vbteam\/wp-json\/wp\/v2\/media\/8818"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/vbteam\/wp-json\/wp\/v2\/media?parent=6993"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/vbteam\/wp-json\/wp\/v2\/categories?post=6993"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/vbteam\/wp-json\/wp\/v2\/tags?post=6993"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}