devxlogo

May 12, 1999

Optimize With the Named Return Value

The named return value is an automatic optimization that a compiler applies in order to eliminate the construction and destruction of a temporary object. When a temporary object is copied

Limit the Number of Rows Returned When Using JDBC

If you’re issuing SELECT statements to a database using Java Database Connectivity (JDBC), a huge number of records can be returned by the java.sql.ResultSet. However, sometimes you will want to

Dynamically Load a Style Sheet

Question: How do you dynamically load a style sheet? I’m trying to use the tag in the to load a style sheet. All the pages in my site use the

Subclass Grid Controls

Sometimes a class needs to communicate with the object that created it. For example, I use a class to subclass grid controls so I can handle things such as tabbing

Join Two Files Together

The DOS Copy command allows you to take the contents of two different files and put them one after the other into a third file. You can do the same

Cache Your JavaScript Object References

You can write JavaScript code that is more readable and maintainable by reducing object references. For instance, you can use the with() statement or nested with() statements in JavaScript to