Tip Bank

DevX - Software Development Resource

Customize Your Template Function

If a function instantiated from a generic template definition does not suit your need, it’s possible to provide a specialized definition for that function template instantiation. Take a look at

DevX - Software Development Resource

Use SimpleDateFormatter for Date and Text Conversion

The following code shows you how to use SimpleDateFormatter for date and text conversion: java.text.SimpleDateFormat formatter = new java.text.SimpleDateFormat(“EEE MMM d hh:mm:ss yyyy”); java.util.Date date1 = null;try{ date1 = formatter.parse(“Thu

DevX - Software Development Resource

Storing Values in a Windows Registry with VB

The following code allows you to permanently store values in a Windows registry and retrieve them later: SaveSetting appname:=”ABCX”, Section:=”Startup”, Key:=”samp”, setting:=”Y” You can either check in the Windows registry

DevX - Software Development Resource

Pass a Multi-dimensional Array to a Routine

Passing a multi-dimensional array to a routine is different in .NET. For example, say you have a two-dimensional array called aStrMy2DArray(10,1) as a String data type. Use this code to

DevX - Software Development Resource

Using XPathDocument in XPath Queries

Don’t use the XmlDocument class if you are going to work with XPath queries. .NET has its own class for this purpose called XPathDocument, which does not run any validation