devxlogo

Tip Bank

Creating a project into an existing folder

When you create a new project, VS.NET automatically creates a folder with the project’s name under the selected directory. If you name your project MyTestProject, and select an existing folder

Visually browsing hierarchical files

VS.NET has a nice feature that allows you to visually navigate through the content of hierarchical files, and quickly jump to a particular section. Hierarchical files are all those files

Get the Current Directory

The program is used to display the current and parent directory. ‘.’represents the current directory and ‘..’ represents the parent directory import java.io.File; public class CurrentDir { public static void

Breaking Data Hiding

It is said that C++ provides data hiding, but the following code shows that this is not always true. You can break the C++s data-hiding facility using the memory function:

Get the Maximum Value Across Columns in TSQL

There is no TSQL function for extracting maximum values across columns. However, you can use MAX() and MIN() functions to obtain the maximum or minimum value in any particular row.

GetMdacVersion – Retrieve the installed MDAC version

‘ Retrieve the installed MDAC version” Examples:’ Dim ver As Version = GetMdacVersion()’ ‘ print the full version’ MessageBox.Show(ver.ToString())’ ‘ print the major and minor portions’ MessageBox.Show(“Major: ” & ver.Major