devxlogo

We are an award-winning tech entrepreneurship website where trusted experts can provide value globally.

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.

devxlogo

Trusted for 26 years

Over 30K Articles

1M+ Readers

Expert-reviewed

10K+ Tech Terms

As seen in:

microsoft logo
business_insider_logo
wired_logo
berkley
arstechnica_logo
hackernoon

The Latest

Locale-aware string conversions

You can use the usual UCase, LCase, and StrConv functions to convert a string to upper, lower, and titlecase (e.g. “This Is A Title”). However, VB.NET offers is much more

Weekday names in any language

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: ‘

Trimming strings

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

Iterating over the characters in a string

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

An Improved escape() Function in Javascript

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

LPad Function in JavaScript

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

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

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.

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

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

Select a Whole Row in Any ListView

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

Find the Error-Generating Line

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

Return Empty Arrays Too

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

Calculate Finishing Time

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

Add Incremental Search to a Combo Box

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