The Latest

DevX - Software Development Resource

How to tell when to time-out

Question: How can I determine that a user has been inactive for a certain length of time so that I may exit the application? Answer: This is an interesting question

DevX - Software Development Resource

TEdit and right-justification of text

Question: How can I get a TEdit to display right-justified text? Answer: There is no way to do this at runtime because there’s no facility in TEditto right-align text. The

DevX - Software Development Resource

Unknown EDBEngineError

Question: I am getting an usual message from exception class EDBEngineError. The message is simply: “At beginning of table.”What does that mean? I am building a TQuery SQL property in

DevX - Software Development Resource

Screen resolution

Question: I am developing an application in Delphi 2.0 on a 1024×768 resolution (large fonts), and have been trying to get it to act properly in 800×600 mode with little

DevX - Software Development Resource

Record locking (Delphi 2 Paradox 5)

Question: We are trying to write a multi-user Delphi 2.0 app (with Paradox 5.0 tables), and are looking for a way to determine if a record is locked by another

DevX - Software Development Resource

JDK1.1 and Web browsers

Question: Do the changes made in the 1.1 API mean that if one wanted to write applets for the Web, one would have to use a previous version of the

DevX - Software Development Resource

Data input

Question: I need to pass some data from the user to my applet (or application) which is to be entered from the keyboard, using TextField.The data is repetitive (it fills

DevX - Software Development Resource

Java Strings: Mutable or immutable?

Question: I don’t understand why it is said that Strings are immutable in Java. Here is a small piece of code which shows that Strings are in fact mutable:class TestStringStuff{public

DevX - Software Development Resource

Threads

Question: I recently took Sun’s Certified Java Programmers Exam and I ran into a few questions from the exam I’d like to ask you.What is the difference between >> and

DevX - Software Development Resource

How to implement a linked list

Question: How can I implement a linked list using Java, since there are no pointers? Can you provide sample code that uses a linked list?Thanks! Answer: You need pointers to

DevX - Software Development Resource

CreateOleObject errors

Question: My completed Delphi application exports Quick Reports to Excel. This operation is 99.5 percent successful, and users are delighted. I am one of the developers, and one of the

DevX - Software Development Resource

Conversion from Paradox to Delphi

Question: I want to convert some code written in Paradox to Delphi. I am mainly interested in a quick method rather than the usual method. The code deals with the

DevX - Software Development Resource

Database application deployment

Question: I want to deploy a database application developed with Delphi 2 that will access an Interbase database via TCP/IP, but I cannot find any documentation that describes precisely which

DevX - Software Development Resource

Creating control from code in Delphi

Question: I want to create a button in code, put it on a form and attach a procedure to its click event. How can I get the click event linked

DevX - Software Development Resource

Database “index out of date” error

Question: I am working on a Delphi program in which I am inserting information into a database table by running a student’s ID card through a scanner. I was testing

DevX - Software Development Resource

Corrupt Paradox file

Question: Last week I had a head crash on a PC using Delphiand Paradox files. I was able to recover everything but a log file for the month of March.

DevX - Software Development Resource

How to create a database in code

Question: I was a VB programmer, until my recent shift to Delphi 2.0. How can I create a database in code? Answer: It depends on the type of database youwant

DevX - Software Development Resource

Dialogs: Implementing your own execute method

Question: I use Delphi 1.0. The standard dialogs (such as TOpenDialog and TPrintDialog) offer a method called execute. It executes the form/dialog, and waits until it returns. I would like

DevX - Software Development Resource

Paradox “Table is Full” error

Question: My Paradox table has grown to about 130 MB.Now whenever I try to insert a new record to the table (from code or Database desktop), I geta “Table is

DevX - Software Development Resource

Delphi console application

Question: Is it possible to write a non-interactive program in Delphi 2.0 that does something quick in the background without opening a form or a console window? Answer: Sure, but

DevX - Software Development Resource

Putting a pause in a program

Question: I have a simple animation on a form created by turning bitmaps on and off in sequence. How can I pause between frames? There is no wait or pause