devxlogo

Tip Bank

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

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

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

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

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

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

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