Tip Bank

DevX - Software Development Resource

Datawindow column sorting

Question: I am looking for a way to display an arrowin the the “sorted column” heading to indicatethe direction and column sorted. This functionality can be seen in MS-Exchange. Answer:

DevX - Software Development Resource

How to terminate a program safely?

In standard C, the functions abort() and exit() perform an immediate program termination, regardless of where they are called from. Although this also works in C++, it is usually not

DevX - Software Development Resource

API functions

Question: I want to ask you how can I run windows applications inside of Delphi applications (for example notepad.exe)? Answer: It’s actually even simpler than that… Look in the tips

DevX - Software Development Resource

Using Output parameter with TQuery

Question: In a TQuery component, I use the SQL property to call up a stored procedure which is kept on a MSSQL server. The string used is ‘Execute [nameofproc] :param1,

DevX - Software Development Resource

Copying a file for source to target in Delphi

Question: How to I copy a file from a source to a target in Delphi. I have been trying: SourceId := OpenFile(Source, FileStructure1, of_Read); if SourceID = -1 then ShowMessage(‘Unable