
Since 1998, DevX has helped people start businesses, build websites, and provide enterprise technology to people globally. Interviewing the likes of Microsoft’s co-founder, Steve Ballmer, the publication brings comprehensive, reliable, and accessible insights to the Internet.

The System.Globalization.CultureInfo object exposes two properties, NumberFormat and DateTimeFormat, which return information about how numbers and dates are formatted according to a given locale. For example, consider this code: ‘

Visual Basic .NET strings expose three trim methods: TrimStart, TrimEnd, and Trim – which trim one or more characters from the beginning, the end, or both the beginning and end

Visual Basic .NET strings support the For Each statement, so you can iterate over each individual character as follows: Dim s As String = “ABCDE”Dim c As CharFor Each c

A .NET application can optimize string management by maintaining an internal pool of string values known as intern pool. If the value being assigned to a string variable coincides with

You can think of a StringBuilder object as a buffer that can contain a string with the ability to grow from zero characters to the buffer’s current capacity. Until you

Currently Javascript’s escape() has some limitations. For instance, if you want to pass a+b not a b, you want to get the literal “+” in the server side. Javascript’s escape

The IDENTITY_INSERT property allows explicit values into the identity column of a table. Only one session at a time is allowed to have the IDENTITY_INSERT property set to ON. If

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

Consider the following XML fragment: www.devx.com DevX Website Let’s say that you want to transform this XML in the following simple HTML code: DevX Website The most common way is

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)’;

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.

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

Most of us have the tendency to write: String s1 = “Hello”;String s2 = “World”;String s3 = s1 + s2; However, the above is an expensive operation. As Strings are

I have problems developing applications for non-English


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

If you use collections in your apps, you

Only in VB6 do the common controls OCX files provide an option to select a full line in a listview. In earlier versions, you can select a ListItem only by


After trapping an error in debug mode with the usual “On Error Goto ErrorHandlingCode”, you might be frustrated that you can

If you use dates in your program frequently and you want them to be in a particular format, you don

With VB6 came the ability to return arrays from functions. Returning an uninitialized array is a problem because there is no easy way?other than error-trapping?to find whether an array has

A few ActiveX controls, such as the Common Dialog Control, don

If you ever wondered how some DOS applications, such as Norton Utilities, calculate the estimated finishing time for a long process, here


The fast way to get multiple selected items from a ListBox control is to send it a LB_GETSELITEMS window message. Here


As the user types into a drop-down combo box, he or she passes keystrokes to the ComboIncrementalSearch routine, which then searches the combo box


The VB Integrated Development Environment (IDE) contains many toolbars and menu functions, and the functions you normally use are usually on different toolbars and menus, so most programmers have several











