Tip Bank

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

DevX - Software Development Resource

How to Use the CreateToolbarEx Function

Question: How do you use the CreateToolbarEx function? I want to use it to create dockable tool bars. Answer: With CreateToolBarEx, you’re walking into real low-level stuff that willrequire that

DevX - Software Development Resource

Memo Fields and Carets

Question: I need to be able to move the caret in my memo field back to the begining of the field. Any idea how I do this? Answer: Try this:Memo1.SelStart(0);This