Et drag and drop component kan du finde her:
http://www.torry.net/draganddrop.htmog en funktion til at hive ID ud fra en url kan laves med funktionerne copy, length og pos
function Pos(Substr: string; S: string): Integer;
function Copy(S; Index, Count: Integer): string;
function Length(S): Integer;
en komplet funktion kunne være:
function hentID(tekst: String) : String;
var
s: String;
I: Integer;
begin
s := tekst;
i := pos('?', s);
if i < 0 then
exit;
s := copy(s, i+1, length(s));
if ((s[1] = 'I') and (s[2] = 'D') and (s[3] = '=')) then
begin
s := copy(s, 4, length(s));
end
else
begin
i := pos('&ID=', s);
if i < 0 then
exit;
s := copy(s, i+4, length(s));
end;
i := pos('&', s);
if i < 0 then
result := s;
result := copy(s, 0, i-1);
end;