How to Automatically Create Implementation Declarations

Posted December 15th @ 3:57 pm by m3Rlin

Delphi 4 and newer (versions Client/Server and up) have the capability of automatically creating declarations for functions/procedures. The key shortcut is Shift + Ctrl + C. To use it you have to enter the function/procedure declaration in the interface part and the press the above mentioned keystroke combination. The Delphi IDE will take care of [...]

How to Get the Smallest Number From an Array

Posted December 15th @ 1:01 pm by m3Rlin

The idea is the same as in tip 6.1 but this functions finds the smallest number.

{ You can easily modify this function to accept other numerical types }
function MinInteger(const aInt: array of Integer): Integer;
var
iI: Integer;
begin
Result := aInt[Low(aInt)];
for iI := Low(aInt) + 1 to High(aInt) do
if [...]

« Previous EntriesNext Entries »