devxlogo

Tip Bank

Copy a directory tree

Creating a VB routine that copies a whole directory tree can be a time-consuming job, but fortunately you don’t have to do it. In fact, you can quickly create an

Convert an Exception StackTrace to a String

This feature will be required if you want to store exceptions in a database: import java.io.*;public class Test{ public static void main(String args[]) { String trace = exceptionToString(new Exception(A new

Using System.gc() to Force the Garbage Collector

The garbage collector works automatically, whether you request it to or not. However, it is possible to make a garbage collector request, by invoking the System.gc() method. When garbage collector

Creating a Recordset for Testing

When working with pages, the database is not always available. Sometimes, you need to access a test recordset. Here are is an example of how to create a function that