Hi all, still busy with my little project for replacing the shortcuts littering my desktop. Got a question for you guys, I've added a new form to my project to allow inter/intranet addresses and local paths to be added in the same fashion as the programs. But here's the thing:
I've got two icons, 1 that represents local filepaths and 1 that represents inter/intranet addresses for use on my buttons. Currently this is what I use to determine which icon to use:
There's gotta be a 'better' way to do it than this, right?
BobbaFet
I've got two icons, 1 that represents local filepaths and 1 that represents inter/intranet addresses for use on my buttons. Currently this is what I use to determine which icon to use:
Code:
function LocalOrWeb(thisAddress: string): Boolean;
// true = local, false = web
begin
if thisAddress[2] = ':' then
Result := True
else
Result := False;
end;
There's gotta be a 'better' way to do it than this, right?
BobbaFet
Code:
if not Programming = 'Severe Migraine' then
ShowMessage('Eureka!');