devxlogo

We are an award-winning tech entrepreneurship website where trusted experts can provide value globally.

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.

devxlogo

Trusted for 26 years

Over 30K Articles

1M+ Readers

Expert-reviewed

10K+ Tech Terms

As seen in:

microsoft logo
business_insider_logo
wired_logo
berkley
arstechnica_logo
hackernoon

The Latest

Query Objects for Initialization State

In a large app, or even a small one, you can use Property Let and Property Get to make sure necessary variables and subsystems are initialized. This code is from

Functions Parse Command Lines

Handling multiple command-line arguments has always been ugly in VB, especially when some of the arguments are quoted because they contain characters such as spaces. For example, if you want

Position and Size Controls Using Keyboard

You can move controls using Ctrl with the arrow keys, and you can change control size using Shift with the arrow keys. The controls move or resize according to the

Use TreeView Control With Checkboxes

When the NodeCheck event triggers, you receive as a parameter the node that was checked. Say you need to do some validation and uncheck the node when there’s an error.

Treat a Form Like a Function

Some forms are merely dialog boxes that show something to the user and sometimes get something in return. For example, you might have to create a form that displays a

Julian (Ordinal) Date

Question: Is there an easy function to get the Julian (Ordinal) date of a date? For example 015 from 01/15/2000. Answer: Try subtracting December 31st of the previous year from

Netscape Does Not Support VBScript

Question: I recently rewrote my entire Web site using frames and VBScript to load the appropriate pages into the proper frame. My Web site looked fine in Internet Explorer, but

Assign Zero or NULL to a Pointer

Question: To initialize a pointer after deleting it, should I assign a NULL to it or zero? Are they the same in C++? I know strictly speaking, I should assign

Visual Basic 6.0 Versus Visual InterDev 6.0

Question: How does Web development with Visual Basic 6.0 and Visual InterDev 6.0 differ? Which tool is better for Web development and why? Answer: Both products can help you arrive

Which Scripting Language Should We Use?

Question: We are in the process of putting up two service portals, which may have business-to-consumer (B2C) transactions. We are confused as to which scripting language we should use. We

Pass Strings Using URLEncode

A question I seem to answer a lot comes from people trying to pass information through a query string. While Internet Explorer seems to be more forgiving and allows most

Recommended Books on Cross-Browser DHTML

Question: Can you recommend a book on writing cross-browser DHTML? Answer: What book you should get depends on where you are now. If you’ve never touched JavaScript before, I recommend

Monitoring Mailbox Contents

Question: I have the need to monitor a mailbox. The mailbox is located on a local server, but the person accessing it is in another country. The person who needs

Hosting Internet Mail

Question: Right now we have Exchange set to dial up an ISP and retrieve our mail. We are getting a direct connection to the Internet and I want to host

Dynamically Sort a Listbox

Question: Is it possible to dynamically sort a listbox (a select box with multiple rows)? Let’s say I want to sort the listbox according to different categories. Answer: Here’s how

Call a Function Across Frames

Question: My page has two frames. The left-side frame has a tree and depending on what the user clicks, I set the location for the right-side frame. My problem is

Removing Messages on the Server

Question: I’m new to Exchange Administration and was wondering how to clean out my mailbox on the server. I’m showing a lot of messages even though I have all my

Converting a Datatype to a Stream of Bytes

Sometimes you need to convert a certain datatype to its binary stream ofbytes. An easy way to do it is to create a union that has two members:the datatype in

Dynamic Type Versus Static Type

The type of the most derived object to which an expression refers is said to be the dynamic type of that expression. For example, if p is declared as a

The replace() Algorithm

Another useful STL algorithm is replace(), which is defined in the standard header and has the following prototype: void replace (ForwardIterator start, ForwardIterator end, const T & old_value, const T

Bool Type Conversions

A value of type bool can be converted implicitly to a value of type int, with false becoming zero, and true becoming one. For example: bool b = false; int

The Future of long

On 32-bit platforms, int and long usually occupy the same size. Programmers use these types interchangeably when they need a 32-bit integer. However, on 64-bit architectures, long is often represented

Merging Two Lists

Merging two lists isn’t only a popular homework assignment; rather, this task is sometimes needed in real world programming as well. Fortunately, you don’t have to reinvent the wheel anymore.

Automatic Sorting After Inserting

Question: I have a datawindow with a few columns. I have written a menu through which I can sort the existing data alphabetically or by value. Whenever a new row

Finding a SQL Builder Component

Question: I’m looking for an “SQL builder” component that I can plug into a VB application that is end-user-friendly. Essentially, I would like the component to allow users to use

Printing One Page of a Report

Question: How can I give the user the option to print only one page in a Visual FoxPro report? Answer: The REPORT FORM command has a RANGE parameter. Here is