devxlogo

Tip Bank

Redirect More Efficiently in IIS 5

If you are using Internet Information Server version 5, you can redirect browsers to a new page more efficiently. In IIS 4, you had to use Response.Redirect as in this

Iterate Through Control Arrays

When you need to iterate through all the elements of a control array, use this code: Dim J As IntegerFor J = Text1.LBound to Text1.Ubound With Text1(J) ‘ Work here…

Insert Soft Breakpoints

If you want to step through the code behind a certainscreen element at run time, you might do something like this in break mode: Hit Ctrl-Break from run mode, use

Split Strings Cleanly

The Split function is great for parsing strings, but what happens when a string has more than one consecutive delimiter? It might seem odd that Split() returns empty substrings as

Change the Gray Applet Background

Applets use a default background of gray, which may not be visually appealing to you. Besides, gray may be the background color of the web page on which the applet

Java Consoles Show What’s Going On With Applets

Modern Java IDEs like Symantec’s Visual Cafe and Inprise’s JBuilder offer advanced applet debugging facilities. However, if you develop your applets using only the freely distributed JDK, it might be

On Throwing Exceptions From Constructors

It sometimes makes a lot of sense to throw an exceptionfrom the constructor of a class; look at constructors ofthe java.net.URL for an example. But what do we do if