The Latest

DevX - Software Development Resource

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

DevX - Software Development Resource

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

DevX - Software Development Resource

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

DevX - Software Development Resource

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

DevX - Software Development Resource

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

DevX - Software Development Resource

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

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

Use Safer International Conversions

I have problems developing applications for non-English Related Posts Microsoft Launches AI DivisionUsing the HASHBYTES Function in SQLFormat the Currency for a Culture in C#Report: Windows ‘Redstone’ Coming in 2016Black

DevX - Software Development Resource

Handle Errors Within Forms

When you load or show a form, errors don Related Posts Eclipse Foundation Releases Mars TrainSaaSGenius Provides Reviews of Cloud Computing ServicesCheck if a Character Is WhitespaceVolvo EX30 Electric SUV

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

DevX - Software Development Resource

Use Objects Directly Within Collections

If you use collections in your apps, you Related Posts Aspect Boosts Performance, Features And Functionality In Latest CTRM ReleaseChinese Engineers Mentor Indian iPhone AssemblersSpaceX spacewalk launch reveals immune challengesMicrosoft

DevX - Software Development Resource

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

DevX - Software Development Resource

Assign Null Fields to Controls Without Error

Here Related Posts How To Start A Tutoring Business In 2024Apple hits all-time high, nears $3.176 trillionAI-Assisted Breakthrough in Battery TechnologyCorsair HS70 Wireless Headset ReviewSamsung India Launches Galaxy A25, A15

DevX - Software Development Resource

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 Related Posts What Are Effective Methods for Handling Large

DevX - Software Development Resource

Perform a Strict Date Validity Check

If you use dates in your program frequently and you want them to be in a particular format, you don Related Posts Top App Development Companies in ChicagoSolar Electric Vehicles

DevX - Software Development Resource

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

DevX - Software Development Resource

Restrict Control Sizing

A few ActiveX controls, such as the Common Dialog Control, don Related Posts Study: Code Refactoring Doesn’t Improve QualityBuilding Robust SoftwareModern Warfare 2 remastered mod now availableQuickly preview the file

DevX - Software Development Resource

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 Related Posts CES 2024: Tech Innovations and Smart

DevX - Software Development Resource

Load a Bitmap Resource from a DLL

You can employ any DLL Related Posts Survey: Most Enterprises Still Focus on Structured DataDiscover XYZ Company’s Redesigned WebsiteMicrosoft Unveils PowerApps Development ServiceReport reveals flaws in corporate carbon offsetsCollaborative Peer

DevX - Software Development Resource

Operate on an Array of Selected ListItems

The fast way to get multiple selected items from a ListBox control is to send it a LB_GETSELITEMS window message. Here Related Posts How To Clear Cookies On AndroidCloud Security