How to Get a Unique File Name

Posted December 15th @ 9:24 pm by m3Rlin

You want to save data to a temporary file but you don’t what to file name to use? Well, this function does all the work for you.

function CreateUniqueFileName(sPath: string): string;
var
chTemp: Char;
begin
repeat
Randomize;
repeat
chTemp := Chr(Random(43) + 47);
[...]

How to Focus the Next Edit Control With the Enter Key II

Posted December 15th @ 1:57 pm by m3Rlin

When creating forms with a lot of data entry you may want to consider the option to let the user focus the next edit control by hitting the Enter key. The default key is Tab which can become annoying
All we have to do is add the following code the each TEdit control on the [...]