devxlogo

Tip Bank

How to Increase Environment Space

The default environment that DOS uses to hold settings and DOS variables is small–only 256 bytes. Some programs can cause DOS to run out of space in this area by

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