The Latest

DevX - Software Development Resource

Paint Outside The GUI Thread

A call to repaint() will schedule a component to be repainted when the gui thread is free. But what if we can’t wait till then? Well, we can use the

DevX - Software Development Resource

Load an HTML Page From Within an Applet

Applets are executed within a web browser, and there’s an easy way to load show a specific URL. 1. Get a reference to the applet context 2. Call the showDocument

DevX - Software Development Resource

See Which Fonts Are Installed With Your VM

Sometimes, it is useful to know which fonts are installed. This can differ from one Java Virtual Machine (JVM) implementation to another. The following code displays the names of all

DevX - Software Development Resource

Get a Hold of the Bits in Your Integers

Sometimes, it is useful to obtain a binary representation of integer, or a character. For example, we might want to represent the character ‘a’ by its binary 01100001, the letter

DevX - Software Development Resource

Trigonometry With Java

The java.lang.Math package has useful trigonometric functions such as: public static native double sin(double a) public static native double asin(double a). So, if we write code: double x = 90;

DevX - Software Development Resource

Using ShowHelp with Windows 95 and NT

Question: When we call the ShowHelp function in Windows 95, it works with a topic ID but not with a keyword. However, the same source works just the opposite in

DevX - Software Development Resource

Swap Images With JavaScript

A nice touch to a Web page is a button that changes appearance when clicked. All you need is two GIFs and a little JavaScript. The following code initially displays

DevX - Software Development Resource

Stick With Jet 3.51 for Access 97 Databases

It is natural to assume that later versions of software will improve performance and fix bugs. However, you may run into the opposite if you try that with an Access

DevX - Software Development Resource

Copying Controls From Form to Form

Question: I have a VB application that contains two forms. Form A is a Control Library that contains several Frames, Labels, Text Boxes, and Command buttons. (Note: some of these

DevX - Software Development Resource

VB Inheritance

Question: I would like some help with implementing inheritance in VB6. Answer: VB, as of the current version doesn’t really support inheritance, all you can do is have one class

DevX - Software Development Resource

Returning the Last Day of a Month

Question: I have a form from which I am searching a database.The search is being conducted between a startdate and an enddate.As the default I’d like to have the first

DevX - Software Development Resource

FTP in VB

Question: What’s the best way to transfer a file via FTP in Visual Basic? Answer: This is a simple procedure. All you have to do is use the Microsoft Internet

DevX - Software Development Resource

No Response from Server: Part I

Question: Our Informix 7.31 TC2 server has had some troubles recently. It worked properly for about four or five hours but then it rejected any request! Users who are already

DevX - Software Development Resource

Printing a Visual FoxPro Report in Text Mode

Question: My reports are printed in graphic mode. Is there a way to print my reports in text mode? Answer: The REPORT FORM command has a parameter called “ASCII” that

DevX - Software Development Resource

Data Migration from Informix 4.1

Question: About a year ago we had some data migrated by an outside service from Informix 4.1 to SQL Server 6.5. It appeared at the time that everything went well.

DevX - Software Development Resource

Creating Folders in an Application

Question: How do I get my application, developed in PowerBuilder 6.0, to manipulate folders in Windows Explorer? I want it to be able to create folders. Answer: PowerBuilder does not

DevX - Software Development Resource

Using the FileSystemObject in an ASP Page

Question: I am using the FileSystemObject in an ASP page to check if a file exsts using the FileExists method. The problem is that I don’t want to hardcode the

DevX - Software Development Resource

Automatically Close Popup Window

Question: What can I add to an HTML file presented in a popup window called by a script to automatically close that popup window after so many seconds? I have

DevX - Software Development Resource

Query is not Updateable Error

Question: When trying to run the SQL statement, I get this error but I don’t know what it means: Microsoft OLE DB Provider for ODBC Drivers error ‘80004005’ [Microsoft][ODBC Microsoft

DevX - Software Development Resource

Limiting Search Results

Question: When my clients enter searching criteria, I want to limit the number of results. For example, if the number of results is over 100, I want the user to

DevX - Software Development Resource

To RMI or Not to RMI

Question: We are now developing a Java-based remote monitoring systemapplication for our SCSI RAID subsystem products. This application canenable our customers to monitor the status, and change theconfiguration, of the

DevX - Software Development Resource

Server.CreateObject vs. the OBJECT Tag

Question: What is the difference between creating objects using Server.CreateObject and the tag? Answer: The difference is when the object is actually created. Server.CreateObject makes an object whenever the code

DevX - Software Development Resource

ADO

Question: I want to open a small ADO recordset from the server and save it the local drive to be used as a disconnected session. Can you tell how to

DevX - Software Development Resource

VB 6 and Outlook

Question: I need to create a VB utility that will read and parse a flat text log file (no problem here) and then automatically send an email with any error

DevX - Software Development Resource

Display Phone Data in Mask

Question: Our phone numbers are stored in SQL 7 database in the format 9999999999. How can I use ASP to display the phone numbers using the mask (999)999-9999? Answer: You

DevX - Software Development Resource

JDK Editions

Question: When I go to download the Sun JDK, I see there’s an Enterprise Edition, and a Developer Edition, as well as a Standard Edition. What are thedifferences between all

DevX - Software Development Resource

How to Read Downloaded ASP Files

Question: I downloaded some ASP files from Netscape. When I try to read these files in Netscape, it gives me some error messages. Are there any “readers” for ASP files,