Unable to read the post from yesterday, trying again.

I am trying to attach a document reference to an email.
This has been working for years, since the ol' days of GW5.
Now in GW7 nothing happens when running this. The returned string is empty.


procedure AttachDoc(gwTkCmd, gwDocRef: OleVariant);
var
s: string;
begin
gwTkCmd.Execute('ItemAttachmentAdd("X00";115;"' +
gwDocRef.MessageId + '")', s);
end;

Regards

Helge Sogaard
2ndC Danmark