Tip Bank

DevX - Software Development Resource

Read the Entire Text Element

SAXParser’s DefaultHandler provides a callback for public void characters(public char[] ch, int start, int length, etc.) and throws a SAXException for reading element text contents. You can read the char

DevX - Software Development Resource

Testing with an Application Verifier

Application Verifier is a tool for testing user-mode applications for compatibility with MS Windows XP. It comes in handy when you’re troubleshooting issues like common programming mistakes related to memory

DevX - Software Development Resource

Masked Edit Control

To include characters in your mask that are also part of the set of mask syntax characters, escape them by using the backslash () character in front of the character

DevX - Software Development Resource

Use Reflection to Find Dynamic Class Information

Use this code to find information?such as the method name or the parameters?of a dynamic class: import java.lang.reflect.*;public class DynMethodNames{ public static void main(String a[]) { try{ //passing class name

DevX - Software Development Resource

Using StringBuilder in .NET

StringBuilder has an Append method that returns a reference to itself. This is useful for when you want to append several items in one go. The following code is an

DevX - Software Development Resource

Display Alert Messages on Separate Lines

Everybody knows that the alert() function in JavaScript is used to display messages in a dialog box. For example, the following code: alert(‘Hello Prakash’); will pop up with this message: