devxlogo

Tip Bank

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

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

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

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

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

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

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

What’s the C++ Equivalent to _getch()?

Question: What is the C++ equivalent to _getch()? I need to have program control immediately after any keypress in a DOS-based program. Answer: Unfortunately there is no specification in the