The Latest

DevX - Software Development Resource

Page Redirection

There is no Response object method that will redirect/forward a page visitor to another page after a specified amount of time.To achieve this you can use following two methods:1) Using

DevX - Software Development Resource

Eliminate All Database Connection Logic from ASP

Eliminate any database connection logic from your ASP pages by implementing a simple VB component that wraps up the most common ADO functionalities and in conjunction with a UDL. 1.

DevX - Software Development Resource

Format the Given Date into a Required Date Format

You can change the given format into the required date format using the CONVERT Function. Here’s an example: companyid peo———– ———–104 1998-09-30104 1999-09-30104 1999-12-31104 2000-03-31104 2000-06-30104 2000-09-30104 2000-12-31104 2001-03-31104 2001-06-30104

DevX - Software Development Resource

Use ISQLW for Messenger Service in an Intranet

It’s possible to send messages from one system to another system in an Intranet by using ‘xp_cmdshell’ extended stored procedure in MS SQL Server. The usage of this procedure can

DevX - Software Development Resource

Write One toString() Method for Most All Your Classes

public String toString(){ StringBuffer sb = new StringBuffer( 256 ); sb.append(“[Field Name] [Value] “); Class curr = this.getClass(); while(curr != null){ Field[] field = curr.getDeclaredFields(); for(int i=0; i

DevX - Software Development Resource

The Difference between “==” and “equals”

The basic difference between the “==” and the “equals” method is to compare the two entities on either side of the operator or the method. But when objects are compared,

DevX - Software Development Resource

Using Property Files instead of Hardcoding Values

Oftentimes, you hard code values like URL Related Posts Using the FileTime Class in JavaJury Orders Oracle to Pay HPE $3 Billion in Itanium LawsuitBYD unveils new plug-in hybrids in

DevX - Software Development Resource

Use IN in place of OR

If you use OR against a table when you are trying to retrieve rows on matching criteria, it will search the table as many times as matching criteria you gave.

DevX - Software Development Resource

Using the dir() and the dir$() Functions

It’s possible to use the dir() and the dir$() functions to list directories. However, many programmers handle the two first returns from the functions “.” and “..” by using an

DevX - Software Development Resource

Set Fraction Digits

To reduce the number of fraction digits in a double type variable, follow the code sample below. This can be useful in money calculations. Firstly, create a NumberFormat instance and

DevX - Software Development Resource

Don’t Worry about Sorting

It is possible to sort any type of array of elements, even if you don’t know a sorting algorithm. First, pass an array variable to sort the method (which is

DevX - Software Development Resource

Exception Specifications — Myth and Reality

When exception specifications were added to C++ a few years ago, they looked very promising. However, as is often the case in a programming language Related Posts Java Support for

DevX - Software Development Resource

Place a Member Initialization List in a Constructor

In the following example, a member initialization list appears in the inline definition of the constructor, inside the class body: class ratio {private: int x, y;public: ratio(int top, int bot)

DevX - Software Development Resource

Use Control/Space for VB IntelliSense

You can press Ctrl-Spacebar to make IntelliSense prompt you for variables, methods, properties, or events at any point in a code window.For example, if you have a variable named myvariable,

DevX - Software Development Resource

Avoid Regenerating Overlay Images

If you Related Posts May’s geomagnetic storm sparks unique atmospheric changesGoogle unveils new AI accessibility featuresExplore a Few Math Functions in SQL ServerCA Acquires BlazeMeterChinese universities overhaul majors for hi-tech

DevX - Software Development Resource

Allow Only Programmatic Input to Combo

Database applications often need to forbid user input to combo boxes, which limits the user to a given set of choices. But just as often, these apps need to assign

DevX - Software Development Resource

Keep a MAP File

If the LINK environment variable is set to /MAP when VB launches, you’ll get a MAP file whenever you Make EXE, even when you are not generating debug symbols. Keeping

DevX - Software Development Resource

Validate Text Against a List of Values

I often find it necessary to check that a string is valid by ensuring it exists in a list of strings. For instance, you might need to check that a

DevX - Software Development Resource

Copy an Array Faster

Here Related Posts Cisco to cut 7% of workforceMicrosoft updates Recall amid privacy concernsAmazon Launches Machine Learning IoT Analytics ServiceValve to support ASUS ROG AllyKudu Now a Top-Level Apache Project

DevX - Software Development Resource

Preventing Derivation

In general, disabling inheritance is a dubious idea. Yet under some circumstances it may be useful. To do this, declare the class in question (called A in our example) as

DevX - Software Development Resource

How to Derive from a Class Template

A template Related Posts Biased AI in Recruitment Raises ConcernsAdding Longs Without OverflowingArmed Commercial Drones To Be in the SkiesAmazon Launches New Cloud Development ToolsMoving a File Using Java

DevX - Software Development Resource

Microsoft All Talked Out, Cancels PDC This Fall

ew Orleans?A Microsoft spokesperson said today that the company would not hold its annual Professional Developers Conference (PDC) at its traditional time in the Fall this year. The company is

DevX - Software Development Resource

Transform Legacy Data to XML Using JAXP

he ability to parse and transform XML documents is nothing new for Java developers. There are several packages available that come with the tools to do it. But these products