The Latest

DevX - Software Development Resource

Use the Immediate If Function in VBScript

Visual Basic includes the Immediate If function (IIf), but VBScript (VBS) does not. However, you can copy this code to VBS to allow the IIf function to be used: ‘VB

DevX - Software Development Resource

Algorithms: A Linear Search

This is a very straightforward loop comparing every element in the array with the key. As soon as an equal value is found, it returns. If the loop finishes without

DevX - Software Development Resource

Interview with Ingo Rammer

ngo is an independent consultant, developer, author, and trainer based in Vienna, Austria. His books “Advanced .NET Remoting” and “Advanced .NET Remoting in VB.NET” were published by Apress in 2002.

DevX - Software Development Resource

GetGreyScaleImage – Convert a bitmap to greyscale

‘ Convert a bitmap to greyscale – the function returns a new bitmap,’ it does not directly modify the input image.’ Note: requires the GetGreyScale function” Example:’ Dim bmp As

DevX - Software Development Resource

GetGreyScale – Convert a color to greyscale

‘ Convert a color to greyscale’ Example: Me.BackColor = GetGreyScale(Color.Red)Function GetGreyScale(ByVal col As Color) As Color Dim greyValue As Integer = CType(col.R * 0.3 + col.G * 0.59 + col.B

DevX - Software Development Resource

Put Your Sensitive DB2 Data Under Lock and Key

ackers are trying to find some way to get into your database. If you think they’re not, you’re just deluding yourself. The news stories about compromised credit card numbers are

DevX - Software Development Resource

A Technological Sea of Change

t the Professional Developer’s Conference (PDC) in Los Angeles this week, Microsoft’s presentations herald a sea change in application development capabilities. These changes have the potential to cause huge upheavals

DevX - Software Development Resource

Whidbey to Longhorn: PDC a Satisfying Tease

os Angeles?Microsoft rolled out a superabundance of new technology at the Professional Developer’s Conference (PDC) in Los Angles this week?so much new technology that it’s difficult to determine which of

DevX - Software Development Resource

The Eolas Patent: Don’t Be a Victim

y now, most Web developers know that Eolas and the University of California (UC) sued Microsoft over a patent infringement related to the , , and tags used to launch

DevX - Software Development Resource

Send Form Data from Java: A Painless Solution

ending simple GET requests from Java is extremely easy (be it an application or a servlet), but sending multipart forms, like when you upload files, is painful. The former can

DevX - Software Development Resource

ScrambleWords – Scrambling the words of the input string

‘ Scramble the words of the input string’ Note: requires the ArrayShuffle routine” Example:’ Dim text As String = “This is a test string for the ScrambleWords function”‘ Debug.WriteLine(ScrambleWords(text))Function ScrambleWords(ByVal

DevX - Software Development Resource

Creating Container-managed Entity Beans with JBoss

n Entity Bean is an Enterprise JavaBean (EJB) that represents a persistent object in a relational database. JBoss provides two methods of entity bean persistence, Bean Managed Persistence (BMP) and

DevX - Software Development Resource

A VBScript Function that Emulates the VB IIf()

If you’re still using classic ASP, this is a simple little VBScript function that emulates the VB IIf(). It helps in intializing and making your code look a little cleaner.

DevX - Software Development Resource

Create a Statically Initialized List of Objects

A group of objects can be organized into arrays or collections. Arrays are nice because you can statically initialize them, but collections have far more functionality. Using this tip you

DevX - Software Development Resource

A Better Version of Bubble Sort

This version of bubble sort stops when there are no more exchanges and it also sorts a smaller range each time. void bubbleSort3(int x[], int n) { bool exchanges; do

DevX - Software Development Resource

Format Color for HTML

This function, which converts a color value into a string suitable for HTML, formats an RGB color value, palette index, or system color constant. You accomplish this by breaking out

DevX - Software Development Resource

Copy One Array to Another Without Using Loops or Conditions

Here’s the code the usage of arraycopy: public class testarrcopy{ public static void main(String arg[]) { //Array of any object can be user defined object String source[] ={“one”,”two”,”thr”,”four”,”five”,”six”,”sev”,”eight”,”nine”,”ten”}; //Array of

DevX - Software Development Resource

Change-proof Your Flat-file Processing with XML

very new enterprise system built today has to integrate with and support existing systems. Since the earliest days of programming, passing data between systems via flat files has been a

DevX - Software Development Resource

Time Conversion GMT to Current Time and Back

When you’re working in several time zones, you need to save date values in a common format?the most obvious one being GMT. The following stored procedures store datetime in GMT