Attachment from a form to Disk

Before that all, sorry for my bad English…

I am working in application and I need save an attachment created in a form…

It is, I created one attachment in form’s design and I want that, when the user open the form, can see the attachment and he clicks a button and save the attachment on specific path of the disk (for expample: “c:\Test”) WITHOUT USING THE RIGHT BUTTON MOUSE’S…

If someone can help me, I am going to be very grateful…

Regards…

Juan (Joan)…

Subject: Attachment from a form to Disk

look ‘@Command( [EditDetach] )’ command

Subject: Attachment from a form to Disk

Just this morning I posted some sample code on another thread (unfortunately unresolved) that you can probably use for your own purposes.

See: http://www-10.lotus.com/ldd/nd6forum.nsf/DateAllFlatweb/4bce8cfae60cb5af8525738000460903?OpenDocument

Subject: RE: Attachment from a form to Disk

Cesar, Thanks for answer, I was checking the code that you has sent and I have a problem…the formula @AttachmentNames return NULL value…

I just had attached two files…using File → Attach…

If you know why return NULL please answered me…

THANKS A LOT…

Subject: RE: Attachment from a form to Disk

Actually, your solution would have to be the suggestion made by Murat - this will work for attachments made to the form rather than those tot he document). However it means that you must use formula.

x := “filename.ext”;

temp := “c:\temp\”;

@Command( [EditDetach]; x; temp + x)

Subject: RE: Attachment from a form to Disk

Thanks for all!!I can save ok the attachment…

Regards…

Thanks otherwise…

Juan…