








From the Editor: DevX Joins Jupitermedia
n Friday afternoon, DevX, which has operated as an independently-owned media company for nearly four years, agreed to become part of a larger group of online publications. Jupitermedia, the publisher
n Friday afternoon, DevX, which has operated as an independently-owned media company for nearly four years, agreed to become part of a larger group of online publications. Jupitermedia, the publisher
s I write this, four parts have been published in this series (see the left column). Now is the time to focus on how to access the database. As I
‘ Retrieve the content of an embedded text file’ Note: the file must be included in the project as an embedded resource.’ – after adding the file to the project
‘ Check whether a given regular expression is in valid format’ Examples:’ Debug.WriteLine(IsValidRegularExpression(“^(((d{3}) ‘ ?)|(d{3}-))?d{3}-d{4}$”)) ‘ => True’ Debug.WriteLine(IsValidRegularExpression(“^[|)$”)) ‘ => FalseFunction IsValidRegularExpression(ByVal regex As String) As Boolean Try Dim
‘ Return a validation summary string with all the error messages, if any,’ of the controls inside the specified container,’ associated to an ErrorProvider control’ ‘ Example:’ Dim summary As
‘ Check whether an object is storing a numeric value’ Examples:’ Dim s As String = “hello”‘ Dim d As Double = 2.4′ Dim i As Integer = 5’ Debug.WriteLine(IsNumeric(d))
‘ Return the application’s path.’ Note: it also works with add-ins’s dll, whereas Application.StartupPath ‘ returns’ Visual Studio .NET’s startup path instead’ Example: MessageBox.Show(GetApplicationPath())Function GetApplicationPath() As String Return System.IO.Path.GetDirectoryName _
‘ Returns an array with all the controls in the specified container control and ‘ its child containers’ Example:’ ‘ print the name of all the controls on the form