devxlogo

Tip Bank

Associate a File Extension to a Program

This tip is an addendum to the VB-2-the-Max tip CreateFileAssociation – Associate a file extension. The following code shows the complete original tip. The addendum is in bold. Without the

Calculate the Last Day of the Month for Any Given Date

The following code calculates the last day of the month for any given date: Description: Calculates the last day of the month for any given date*/CREATE FUNCTION [dbo].[ufn_GetLastDayOfMonth]( @inpuDate SMALLDATETIME)RETURNS

How to Determine the Default Web Browser

Sometimes people assume that the default web browser is the program that is registered in the Windows registry to open files with an .html extension. However, it’s possible to set

Obtain Class Methods Using Reflection

In this example, you will obtain all methods, all declared methods, and one specific method for the java.lang.reflect.Method class: import java.lang.reflect.*;public class getMethodsWithReflection { public static void main(String[] args){ Class

Using Data Wizards in .NET 2.0

When you use the data wizards in .NET 2.0, the connection string property is read only. However, the following code shows you how to change the connection string: ‘set a