The Latest

DevX

Determine the Last Day of the Month

This can be accomplished with just one line of code: FindEOM = DateSerial(Year(ADate), Month(ADate) + 1, 0) Setting the day parameter of DateSerial to 0 always returns the day prior

DevX

A Useful Retrieval Procedure

This procedure retrieves the table name, table id, column or fieldname, data type, the length of the field in bytes, and the order in which the fields were created. I

DevX

Change the Read-only Permissions of a File (JDK 1.2.2)

Use this code to change the read-only permissions of a file in JDK 1.2.2: public void changeFilePermission(){ String osName = System.getProperty(“os.name”); try{ if (osName.equalsIgnoreCase(“WINDOWS NT”) ||osName.equals(“Windows 2000”) ) { Runtime.getRuntime().exec(“cmd.exe

DevX

The Trim Function in JavaScript

JavaScript doesn’t have a trim to strip the spaces around strings. This little bit of code uses regular expressions to strip the spaces around given input. function trim(input){ var lre

DevX

Use <DIV> to Change Colors

DIV Example Click to turn this text red. Related Posts Actor Justin Long promotes Qualcomm laptopsGet a User that has Deleted Rows with SQLCheck for finite numbers in PythonHPE, Micro

DevX

How to Double Image Size

Use the following code to scale an image into double its original size: import java.applet.*;import java.awt.*;import java.net.*;public class ScaleImage extends Applet{ Image img; public void init() { try { img

DevX

GetStringBetweenTags – Returns a string between 2 delimiters

‘ Returns a string between 2 delimiters’ Parameters:’ sSearchIn: String to search’ sFrom: First keyword’ sUntil: Second keywords’ nPosAfter: Gets the position after” Example:’ Debug.Print GetStringBetweenTags(“This is a sample of

DevX

Saving a MSChart image to file

To save to file the graph generated by a MSChart control, you must use the control Related Posts Dinosaur fossils discovered in northern B.C. mountainsUse Yield Instead of a List

DevX

Changing the icon of a drive

By editing the Registry it is possible to change the icon that Windows Explorer uses for a drive. For example, if you want to change Drive E’s icon, create the

DevX

The Basics of GDI+

n graphical user interfaces such as Microsoft Windows, drawing on the screen is an important task. Everything displayed on the screen is based on simple drawing operations. Often, environments such

DevX

Asynchronous Calls in .NET

hen you make a method call on an object, typically you must block the client while the object executes the call, and control returns to the client only when the

DevX

Using GDI+ in ASP.NET Web Applications, Part I

DI+ is a technology that developers generally associate with Windows Forms applications because they use it to draw anything on the screen from custom controls to diagrams. However, you can

DevX

GDI+ Drawing Page, Part I

here was a time, not too long ago, when browser-based user interfaces were considered both the status quo and the Next Great Thing. The demand for Windows Forms-based applications started

DevX

Getting Started with Regular Expressions

egular expressions. The name doesn’t conjure up any grandiose ideas about what they are all about. How could it with the word “regular” in the title? For those of you

DevX

Dynamically Adding Wired Controls to Web Forms

eb Forms that require only controls and functionality provided by the built-in ASP.NET Web server controls are easy to create. But creating Web Forms that require or are designed with

DevX

Handling SQL Server Errors in Nested Procedures

asic error handling in SQL Server’s programming language, Transact-SQL, is straightforward. But when you nest calls to stored procedures, and the procedures have SQL transactions, error handling becomes much more

DevX

Python Boosts JAR File Auditor Functionality

nderstanding the Java classpath and Java’s classloading mechanism are essential for any proficient Java developer. In a previous DevX article (Put an End to Jar File and Class Name Conflicts),

DevX

Using the .NET File System Object Model

he .NET Framework doesn’t change the structure of the file system, nor does it build a new layer on top of it. More simply, but also more effectively for developers,

DevX

Deadlines, Deadlines, Deadlines

‘ve been in this business long enough to know that wherever you find a software developer you’ll find at least a one-to-one relationship to a deadline. More often, you’ll find

DevX

XQuery, the Query Language of the Future

Query will likely become the dominant language for querying data from most data sources. Although designed for querying XML data, you can use XQuery to tie together data from multiple

DevX

It’s the Concept…

nspiration for my editorials comes from many diverse sources. Sometimes I get inspired from a song on the radio, a conversation with a friend, or a line from a movie.

DevX

A Flying Pop-up Window

The following code can be used to create a popup window which flies in the screen. Related Posts 3 Options for Capturing Heap Dump from an Android AppMicrosoft’s Mustafa Suleyman