Since 1998, DevX has helped people start businesses, build websites, and provide enterprise technology to people globally. Interviewing the likes of Microsoft’s co-founder, Steve Ballmer, the publication brings comprehensive, reliable, and accessible insights to the Internet.
QLXML is a set of supplemental tools that extend SQL Server’s existing support for retrieving and storing XML data. With SQLXML 3.0, you are now able to use SQL Server
The ASP.NET Page object exposes the MapPath method, which converts a virtual path into a physical path, so it’ is useful for passing arguments to objects that don’t work with
The following routine parses the registry and lists all the installed COM components: ‘ this code assumes that you have used this Imports statement’ Imports Microsoft.Win32′ Print ProgID, CLSID, and
The .NET frameworks provides a set of classes that let you work with the Registry, so it is quite easy to create routine that looks for specific keys to determine
The System.Diagnostics.Process class exposes the GetProcesses static method, that returns a list of all running processes. It is quite easy to leverage this feature to display all running processes in
The System.Diagnostics.Process class provides several methods to launch and controls other Windows processes. For example, the following code sample shows how to run Notepad, pass arguments to it, and run
lassic VB ListBoxes held a simple array of strings used for the list, and a parallel ItemData array that held a list of Long numeric values. Using the two in
By utilizing the CLASS attribute, you can assign the same set of style definitions to each tooltip. The basic syntax of the tooltip is as follows: Text to be displayedWhere
Let the table cell be like this: … The JavaScript code to change the color to blue is: if (document.all) document.all.aCellID.style.backgroundColor = ‘blue’;
//Implementation of JS Functions//——————————//To Move up//To Move down
This is the easiest way: Select “bcp ” + db_name() + “..” + name +” out c: emp” + name + “.txt /c -t -SserverName_ -Usa -Ppassword/b1000″from sysobjectswhere type =
You can obtain the free space details of each drive by executing this stored procedure: Master..xp_fixeddrivesdrive MB free—– ———–C 1317D 7194E 3930(3 row(s) affected)
Sometimes, you need to exit a nested loop early, and the break; statement will only let you exit one level of a loop. Use a flag to indicate if the
The Robot class in Java provides a special method to capture your screen. This method creates an image containing pixels read from the screen and returns a BufferedImage class object.
To Sort a String in alphabetical order instead of ASCII order (i.e A,a,B,b not A….Z,a….z), use the Collator class from the Java.text package.Here
It’s not too much trouble to read a few arguments from the command line. It really becomes a problem if you have to read 50 or more arguments. One solution
Whenever you read a database field, concatenate an empty string to the field value before assigning it to a variable or control property. This prevents the program from giving an
By default, VB passes all arguments to a procedure by reference, which means the procedure can change the values of the variables you pass. However, there
You can display a logo in the middle of your MDI form. The logo stays in the middle even when the MDI form is resized. After creating your own MDI
The best way to work with the tab control is to set up a different frame for each tab. If you set the frames to be indexed, you can quickly
You see trailing ellipses (…) when VB truncates either the expression or data portion of a data tip (the mouse-hover watch value you get while debugging). This is great if
If you want the user to be able to select from a fixed range of numeric values, you have a number of choices. In VB6, you can use the UpDown
In graphical applications, you often need to know the angle between two lines. You can move their intersection point to the origin easily, so all you need to do is
acromedia just announced the sixth version of the Flash IDE and player, Flash MX, which positions Flash as the vanguard of an entirely new project strategy, called Macromedia MX. Flash
An MDI child form is a regular form whose MdiParent property points to its MDI container form, so the code that creates and displays a child window is very simple:
The new Break and BarBreak properties of the MenuItem object let you create menus with multiple columns. All you have to do is set either property to True for the
Copying a piece of information into the clipboard is as easy as calling the Clipboard.SetDataObject: you can pass this method a string, an image, and so on. If you pass
Numeric values and pointers are implicitly converted to a Boolean value in conditional expressions. For example: void *p = get_ptr();if(p){ // process p} A zero value evaluates as false. All
In the early days of C, pointers were plain integers. Relics of this approach can still be found in vintage APIs and legacy code. For instance, the ANSI C header
The system() function (declared in ) launches another program from the current program. As opposed to what most users think, it doesn’t return the exit code of the launched process.











