The Latest

DevX

Maintain Large Databases with XML Servers

ne of the more common questions asked here at “Ask the XML Pro” has to do with the dilemma of maintaining large databases of XML data. Specifically, suppose that you

DevX

Validating and Formatting a Phone Number

any of the more common questions asked of the VB Pro involve formatting and validating data. In this 10-Minute Solution, you’ll learn how to validate and format a phone number.

DevX

Writing Java for the Palm

ava continues to make inroads at all levels of computing. Mostrecently, Java has returned to its roots and found a home in the smalldevices for which it was originally designed.

DevX

Building an Application Error Handler

untime errors can occur as a result of attempts to complete an invalid operation while the program is running. There are two causes of runtime errors: either one of the

DevX

Ensure Efficient Usage of Connections

You should be very careful while establishing database connections from your Web-based application. MDAC 2.0 (Microsoft Data Access Components) provides automatic connection pooling behind the scenes. Connection pooling in OLE

DevX

Mark Server Components for Unattended Execution

You should always mark your VB server components for Related Posts Lower your internet costs with these tipsReasons to Invest in Legal Workflow SoftwareTip: How to Turn on TLS Versions

DevX

Quickly Convert Recordset into an XML File

With MDAC 2.1 (Microsoft Data Access Components), you can generate a XML file quickly from a Recordset object. The Save() method of Recordset object takes in an optional parameter, adPersistXML,

DevX

Transferring .PST Files from Work to Home

Question: I’m running Outlook 2000 and would like to import my *.pst file into my home system. However, I receive an error message saying that the file needs to be

DevX

The Many Uses of the Split Function

s Visual Basic and VBScript have progressed from version to version, chances are you have not kept up to date with some of the new functions introduced in the later

DevX

Using AVIs as Buttons

Browsers Targeted: Internet Explorer 3+ Depending upon your bandwidth availability, you can incorporate AVIs into your Web pages as navigational elements. If you set the dynsrc property of the tag

DevX

Undo changes in a TextBox control

The TextBox control supports the capability to undo changes, but there is no property or method that exposes this feature. You can achieve the same goal with a a set

DevX

The first visible line in a multiline TextBox control

To determine the index of the first visible line in a multiline TextBox control you only need to send it the EM_GETFIRSTVISIBLELINE message: Private Declare Function SendMessage Lib “user32” Alias

DevX

Create TextBox with dithered background

If your video display has 256 colors or less and you assign a dithered color to the BackColor property of a TextBox control, you’ll find that the background color under

DevX

Recalculate the Download Time in DreamWeaver 2

By default, DreamWeaver 2 assumes that your page will be downloaded with a 28.8 KB per second modem. The estimated download time appears in the status bar. If you are

DevX

Be Aware Of The Signed Byte

Java lets you cast an integer into a byte and vice versa. While this provides power and flexibility, we should be aware that Java’s byte data type is signed, meaning

DevX

Validate Dates With Java

We can use java.text.DateFormat to validate dates. DateFormat is an abstract class for date/time formatting subclasses. It provides parsing methods for conversion of text into date. If the conversion cannot

DevX

StringTokenizer and the Missing Token

If we have a comma delimited string like “token0,token1,token2,,token4” that has some token(s) missing, and we try to use java.util.StringTokenizer to place each delimited token in a slot of an

DevX

float or double?

For most uses, double is the default floating-point data type to be used. Variables of type double offer higher accuracy and minimize truncation and deviation to a minimum. This is

DevX

Be Careful With Transient Data

Java’s serialization provides an elegant, and easy to use mechanism for making an object’s state persistent. While controlling object serialization, we might have a particular object data member that we

DevX

Memory Leaks and Their Prevention

A memory leak occurs when an application fails for some reason to release dynamic memory that was allocated using new or malloc().The application won’t reclaim the allocated memory because both

DevX

Add Mnemonics to Inaccessible Buttons Within a Component

A standard in our shop is to provide keyboard shortcutswherever possible. We make extensive use of JOptionPaneobjects in dialogs for quick clarification and/or messages,but the buttons for “Yes”, “No”, “Ok”,

DevX

Preventing the Creation of Temporary Objects

The compiler inserts temporary objects “behind your back” in several contexts. For time critical applications, the overhead of a temporary can be quite significant because both the constructor and the

DevX

Rules of Thumb for Designing Exception Classes

When designing an exception class, think of it as a standalone class with data members and member functions. A well-designed exception class should have a member function that returns a

DevX

Dynamic Memory Allocations and Thread Safety

In general, the global new and delete operators are implemented in a thread-safe manner: each invocation of either operator locks the heap before performing the allocation/deallocation of memory and when

DevX

Launch the Organize Favorites Dialog in IE5

Browsers Targeted: Internet Explorer 5 You can launch the Organize Favorites dialog box from code in Internet Explorer 5.0, through the window.external.ShowBrowserUI method. This method takes two arguments: the name

DevX

Let FrontPage 2000 Clean Up Your HTML Code

One of the complaints about HTML editors is that they try to help you too much and end up rewriting HTML code. On the other hand, if your HTML source