Tip Bank

DevX - Software Development Resource

LPad Function in JavaScript

function LPad(ContentToSize,PadLength,PadChar) { var PaddedString=ContentToSize.toString(); for(i=ContentToSize.length+1;I

DevX - Software Development Resource

Using the IP Address in the Select Statement

IP addresses logically are four numbers. While they are stored in the DB, they are usually held in only one field. I have encountered two types of such storage:1) VARCHAR(15)’;

DevX - Software Development Resource

More Complex String Manipulations

Let’s say you have a table like this: ID test– —-1 Hello1 Mr.1 Gates2 I2 am2 the best And you want a result group by each ID: 1 Hello Mr.

DevX - Software Development Resource

Including Debug Code in Your Classes

You will often need to verify the correct running of your code. While you can use the debug mode of an IDE or compiler, you can also include some debugging

DevX - Software Development Resource

Store Multiple Values in a Tag

It would often be convenient to store multiple values in the Tag property. Here are two simple functions that help you do that. The first function stores the value in