Browse by Tags

Testing Events for Nothing/Null (Doug Rothaus)
25 September 09 10:10 AM
While helping some Windows API folks with some sample code this week, I stumbled upon...uh...I mean “carefully researched” an issue that you might find handy. You may be aware that the RaiseEvent statement automatically checks to verify if an event handler Read More...
Postedby VBTeam | 8 Comments    
Filed under: , ,
VB XML Cookbook, Recipe 6: Writing an XSLT Transform in VB (Doug Rothaus)
06 October 08 03:25 PM
Most XSLT programmers are familiar with this XSLT transform to copy an XML file. <? xml version = " 1.0 " encoding = " utf-8 " ?> < xsl:stylesheet version = " 1.0 " xmlns:xsl = " http://www.w3.org/1999/XSL/Transform " > < xsl:output method Read More...
Postedby VBTeam | 1 Comments    
VB XML Cookbook, Recipe 5: The “Halloween” Problem (Doug Rothaus)
08 May 08 09:47 AM
In the last two XML cookbook entries, we talked about the technique of using the ReplaceWith method to perform an identity transform. While this technique may meet your needs, it can introduce a problem in your code commonly referred to as the “Halloween” Read More...
Postedby VBTeam | 2 Comments    
VB XML Cookbook, Recipe 4: Get Inner XML from the Nodes Property (Doug Rothaus)
01 May 08 04:50 PM
Recipe 3 showed one way to work with mixed XML content using the XML Descendant axis property and the ReplaceWith method. This is one way to do an identity transform and we’ll look at another method in a later post. There is a key capability not mentioned Read More...
Postedby VBTeam | 2 Comments    
VB XML Cookbook, Recipe 3: Identity Transforms (Doug Rothaus)
25 April 08 11:19 AM
An identity transform in XSLT does just what the name implies: replace the identity of an element or attribute with a new identity. Identity transforms are especially critical when dealing with XML markup that is less rigid in its structure. Consider Read More...
Postedby VBTeam | 4 Comments    
VB XML Cookbook, Recipe 2: Descendants and Ancestors (Doug Rothaus)
19 March 08 04:23 PM
This entry in the cookbook shows how you can access descendant and ancestor elements in an XML document using Visual Basic, XML Axis properties, and LINQ to XML objects. Descendants Visual Basic provides XML Axis properties that enable you to easily refer Read More...
Postedby VBTeam | 3 Comments    
VB XML Cookbook, Recipe 1: XML Transformations using XML Literals (Doug Rothaus)
21 February 08 12:22 PM
I was working on a blog entry about replacing XSLT transforms with Visual Basic XML Literals. As the entry progressed, I noticed that it was really, really long. So, Avner Aharoni and I talked things over and we decided to break it up into multiple entries Read More...
LINQ Cookbook, Recipe 12: Calculate the Standard Deviation (Doug Rothaus)
18 December 07 03:09 PM
Ingredients: · Visual Studio 2008 (Beta2 or Higher) Categories: LINQ to Objects Introduction: LINQ Cookbook, Recipe 11 showed how you can use LINQ queries to perform calculations on sets of data using a set of standard aggregate functions such as Average Read More...
Postedby VBTeam | 5 Comments    
LINQ Cookbook, Recipe 11: Desktop Search Statistics (Doug Rothaus)
13 December 07 03:53 PM
Ingredients: · Visual Studio 2008 (Beta2 or Higher) Categories: LINQ to DataSet Introduction: You can use aggregate functions in LINQ queries to perform calculations on sets of data. Visual Basic includes a set of standard aggregate functions for LINQ Read More...
Postedby VBTeam | 3 Comments    
LINQ Cookbook, Recipe 10: Pre-compiling Queries for Performance (Doug Rothaus)
06 November 07 03:55 PM
Ingredients: · Visual Studio 2008 (Beta2 or Higher) Categories: LINQ to SQL Introduction: As we add cookbook entries, we will include performance improvement tips where appropriate. Here’s a tip that you can use with LINQ to SQL to speed up queries that Read More...
Postedby VBTeam | 3 Comments    
LINQ Cookbook, Recipe 9: Dynamic Sort Order (Doug Rothaus)
17 October 07 10:20 AM
Ingredients: · Visual Studio 2008 (Beta2 or Higher) Categories: LINQ-To-XML Introduction: You can use the Order By clause to easily sort the results of a LINQ query in Visual Basic. A common requirement for sorted data, however, is that the user be able Read More...
Postedby VBTeam | 6 Comments    
LINQ Cookbook, Recipe 8: Querying XML Using LINQ (Doug Rothaus)
01 October 07 11:02 AM
Ingredients: · Visual Studio 2008 (Beta2 or Higher) Categories: LINQ-To-XML Instructions: · Create a new Console Application in Visual Basic. · Create an RSS document. Add the following code to Sub Main . Dim rss = <? xml version = " 1.0 " ?> < Read More...
Postedby VBTeam | 6 Comments    

This Blog

Syndication

Page view tracker