The Latest

DevX

Generate a Unique Whole Number

Question: How can I generate a unique number using JavaScript? Answer: You can generate random numbers in JavaScript using the Math.random() method. This function returns a fractional random number between

DevX

GetYear() Function Is Not Y2K Compliant

Question: I call the following function to display the date in “month, date, year” format. It displays in the right format (for example, January 7, 2000) in Netscape 4.0. But

DevX

Add Keyboard Shortcuts to Your Web Page

With HTML 4.0, you can add keyboard shortcuts to your Web page. To achieve this, you place the ACCESSKEY attribute inside the form element tag. It is advisable to add

DevX

Event ID 1025 – EcGenerateReadReport

Question: I am getting this error message in the event viewer for my Exchange Server: Event Id: 1025Source: MSExchaneIS PrivateType: WarningCategory: GeneralDescription: An error occurredFunction name or description of problem:

DevX

Present Lists Using the SELECT Control

You can use the SELECT control to present a predefined list to the user. The SELECT control is useful for quickly selecting one or more items from a predefined or

DevX

Volatile Semantics and Container Objects

Volatile objects are used in multithreaded applications and applications that map hardware devices into registers. Although you can declare an STL container object with the volatile qualifier, you will not

DevX

When Is It Safe to Use Inline?

Excessive use of inline functions might bloat the size of the executable and reduce execution speed. In other words, using inline abundantly can degrade rather than enhance performance. For this

DevX

Converting Julian Dates to Gregorian Dates

Question: How do I change a Julian date to a Gregorian date and remain Y2K compliant? Answer: I am not sure how the year is stored in the Julian date,

DevX

Hardware Configuration for New Server

Question: We need to migrate to a new server and are looking for some hardware guidelines for the new server. The server will need to support up to 250 users

DevX

Pass PARAM to OCX From ASP

Question: How do I pass a login ID from my ASP page to my OCX? I created a public property in the OCX, but it is not getting the data

DevX

Query Returning Case-Insensitive Matches

Question: Using ASP and ODBC, I can query Microsoft Access databases using the “Like” operator with the wildcard %, such as: Select * from customers where lastname Like ‘%jon%’ The

DevX

Visual FoxPro 6 and Microsoft Word Tables

Question: How can I make a table in a Microsoft Word document through OLE Automation from VFP? I investigated with the Visual Basic editor and I can’t find how to

DevX

Public Folder Synchronization

Question: This is a fairly simple problem but I am relatively new to Exchange and Outlook. I am trying to get my folders that are on Exchange to synchronize with

DevX

Mailto Link Not Connected to Outlook

Question: I’m having a problem. I have Outlook installed, and I also have Lotus Notes. We’re using Exchange as the mail program, and the clients are Outlook. For some people

DevX

Send Parameters From HTML to a Form

Question: I want a link to refer to an order form, but I don’t need to use a database. I just want to pass a few details (like city name,

DevX

Preventing Sending Output to Screen

Question: I am trying to send a text file that I have made from my report to the printer.The code is: REPORT FORM neto ASCII TO FILE pom.txtset headings offTYPE

DevX

Outlook Today Page Is Blank

Question: A user has a shortcut icon for Outlook Today when she opens Outlook 98. But when she clicks on the icon she gets a blank screen. Everything else works?inbox,

DevX

Grid-Change Current Control from Properties Window

Question: How do I change a grid’s CurrentControl property from text1 to edit1 for a memo field from the properties window? Answer: You cannot change it from the properties window.

DevX

E-mail Form Contents

Question: I need to include the information from a form in an e-mail. I found this sample code, but when I run it, I just get a blank page for

DevX

Display an Image in a Particular Position

Question: How can I position an image on the screen the way I would like? The image is bigger than the capacity of the screen and the user can use

DevX

Counting the Number of Mailboxes in a Site

Question: How I can count the number of user mailboxes I install? Answer: To count the number of mailboxes in your site, just click on the Recipients tab and look

DevX

Delay Script Run in IE5

Question: My project is a based on thin client/server architecture. Internet Explorer 3.02 is the front end using ASP; ActiveX controls and DLLs form the business objects; and Oracle is

DevX

A Simple Beginner’s Problem from a Swedish Student

Question: Facts: Employee(name,salary,boss,department) Question: Which employees earn more than their boss ? Answer: Please make sure you don’t share the results with your boss! : ) Try the following: use

DevX

The 19th Common Programming Trap in MTS

have received a lot of feedback from my first two articles about common programming traps in MTS, which were published at VB-2-The-Max in December 1999. Perhaps there are a million

DevX

Exert Control Over Serialization

Java gives you control over the serialization process through the java.io.Externalizable interface. The java.io.Externalizable interface extends the java.io.Serializable interface by adding two methods: public void writeExternal(ObjectOutput out) public void readExternal(ObjectInput

DevX

Limit Your App To One Instance

How can we make sure that only one instance of our Java application is running on a machine? Java does not provide the means of finding out if another instance