
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

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

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

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

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:

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

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

C++ doesn’t specify whether char is signed or unsigned. Thus, the interpretation of the following declaration: char arr[100]; Is platform-dependent: some compilers will treat arr as an array of 100

In the early days of STL, C++ creators decided to include a specialized form of the vector container class, namely vector < bool >. In this specialized vector, bits serve

Many programming schools recommend that functions have only a single exit point. For example, the following function is considered bad programming practice because it contains three potential exit points: int

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

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,

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

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

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

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

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

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

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,

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

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,

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.

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

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

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

When working in the ASP environment, HTML forms are used to pass data from the client browser to the Web server. If the form variables are passed to the Web

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

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

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

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

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