The Latest

DevX

Returning the Root Drives

Question: Can you tell me how to get the root drives on a system? Answer: The 1.0 and 1.1 version of the Java APIs did not include a means ofdetermining

DevX

Conditional Semaphores

Question: I am trying to create a queue that will be emptied by multiple threads simultaneously. In C/C++ this requires the use of a conditional semaphore to signal that the

DevX

Determining Memory Usage

Question: Is there a way to determine the percentage of CPU usage or RAM usagewithin a Java application? Answer: Java does not provide an API for determining CPU usage, but

DevX

Resizing JTable Cells

Question: How can I create cells in a JTable that span multiple rows/columns,as you can do in HTML with the rowspan/colspan tags? Answer: To the best of my knowledge, it

DevX

Select Stored Procedures in MS SQL 7

Question: How do I access an MS SQL 7 Stored Procedure that returns a multi-row Dataset through Delphi 3? InterBase allows selecting from a Stored Procedure. MS SQL 7 only

DevX

Understand the Main Interfaces of the Collections API

JDK 1.2 includes a new library of data structures called Collections. The Collections API contains object collection data structures. The Collection interface is the root interface for all the Collection

DevX

Using the Swing Timer Class in an Application

The Swing Timer is a useful utility offered by the java.swing package in JDK 1.2. This code snippet shows how to use the timer in an application: 1. ActionListener listener

DevX

Submitting Forms to Different Pages

An HTML form usually looks like this: where you have to specify the action within the Form tag, thus limiting a “post” method to only one destination. However, the JavaScript

DevX

Undeleting Records from Paradox Tables

Question: How can I undelete a record from a Paradox table? Answer: You can’t. Period. When you delete a record from a Paradox table, its space still exists, but its

DevX

Changing Label Captions in a FOR Loop (Follow-up)

Question: In your answer to my previously posted topic, “Changing label captions in FOR loop,” you suggested I use “Sleep.” When I used it, the loop slowed down but didn’t

DevX

Lowercase E-mail Addresses are the Standard

Question: I’m working on a company intranet and need to predefine the ?subject and ?body in an e-mail link. When I do, the text always defaults to lowercase. Is there

DevX

What is New in Visual Foxpro 6.0

Question: I have been developing software in Foxpro 2.5 for DOS for many years. I have just bought a licensed VFP 6.0, I want to know what is new in

DevX

BDE Engine Error When Installing Delphi 3

Question: I used InstallShield that comes with Delphi 3 to install a Delphi 3 program on another user’s computer running Windows 98. The install includes the full BDE and two

DevX

How to Prevent Corrupt Indexes

Question: How do I prevent corrupt indexes or automate the rebuilding of corrupt indexes? Answer: Prevent corrupt indexes by taking steps to prevent the crash of an application: 1. Consider

DevX

Passing Collections Between ASP Pages

Question: I am generating Active Server Pages using Visual InterDev and VBScript. I have fetched all my records from the database through my ActiveX DLL into a collection variable. Can

DevX

Determine Which Controls are on a Form

Question: Is there a simple way to ascertain the names of all the controls on a particular form at run time? Answer: Every TComponent descendant has two properties, ComponentCount and

DevX

Troubleshooting Setup.exe errors

Question: I am trying to create a setup.exe for VFP 5.0, using the setup wizard. After I installed the application using the setup.exe and ran the program, I got error

DevX

Paradox Lock Files

Question: I have a Delphi 3 application running on a Novell network, that uses Paradox tables. For some reason, some of the users get the following message every once in

DevX

Cumulative Summary in SQL

Question: I need a summary-select which summaries cumulative values. This one works in Microsoft Access: SELECT s.nl_item_id, s.nl_value, ( SELECT sum(sub.nl_value) FROM TABLE1 sub WHERE sub.nl_item_id

DevX

Fire File Deletion From Inside ASP Page

Question: Is there any way to fire a file deletion from inside an ASP page while the page is being unloaded? I am creating a file on the fly using

DevX

Typecast Text to LPARAM

Question: How do I typecast text to LPARAM? LPARAM is supposed to be an integer, but clearly the API call wants text. I’m assuming I missed some pchar>string or pointer

DevX

Directory Browsing

Question: When the browser is pointed to a directory with no default HTML page then, in most cases, it shows the directory contents. Is it possible to create an HTML

DevX

Speed Up Run Time

Question: My executable takes almost a minute to run. How can I speed up the process? I am not running any queries at this point?I wait until I actually show

DevX

Put a Variable in a SQL String

Question: How can I put a variable in a SQL string? For example: input:=edit1.text;query1.sql.add(‘select * from address where name like ‘); Answer: Since SQL.Add takes a string, all you need

DevX

Create an Invoice

Question: I need to create an onscreen invoice. I can figure out Supplier name, Customer name, and so on. But I can’t figure out how to do the body?for example,

DevX

String to Float

Question: How do I add two label values together and submit the answer to another label? Label19.Caption := FloatToStrF(Table1Standard.AsFloat,ffCurrency,15,2)Label20.Caption := FloatToStrF(Table1Zero.AsFloat,ffCurrency,15,2)Label21.Caption := StrToFloat(????????? Answer: This is one of those things

DevX

Convert Delphi to C++?

Question: How can you convert Delphi to C++? Answer: I don’t know of any conversion tools out there that do this, though I could be wrong. If you’re using both