Tip Bank

DevX - Software Development Resource

Difference between yield() and sleep()

Question: What is the difference between calling yield() and sleep()? Also, in what instances would you call either method? Answer: The Java platform uses the multithreading facilities of the host

DevX - Software Development Resource

Delphi Queries and SQL

Question: I am trying to perform multiple queries, and to speed things up I want to perform a query on the result of a previous query. Is there an easy

DevX - Software Development Resource

Resetting Net and Lock Files

Question: Is there a way to reset the net and lock files that an application develops withouthaving to shut down the software? Even a temporary pause would be acceptable. We

DevX - Software Development Resource

Best Way to Delete Master Detail Records

Question: As you know, when you create .db tables with referentialintegrity (i.e. Paradox or Desktop), this makes detail records that dependon the master. When you want to delete records in

DevX - Software Development Resource

Calling a DOS Command

Question: How can you call a DOS command under Delphi 2.0? For example, I want to do a “TYPE >prn” from Delphi. Answer: You can do it with CreateProcess. Refer

DevX - Software Development Resource

DATABASES and TABLES

Question: I have a table. When I delete an item, the size of the table won’t change. I think the delete command for tables doesn’t move up the entries but

DevX - Software Development Resource

Extending TCustomControl Painting

Question: I have two questions:Question 1:How can I extend the painting functionality of a TWinControl like the TGraphicControl‘s Paint method? Question 2:I cannot find the Paint method in TWinControl to

DevX - Software Development Resource

Date Comparisons

Question: I cannot find much info on how to do Date math. I am trying to determine elapsed days from a record entry date to the current date. I am