PdcAttachment.Save

From External Bemet Wiki
Jump to navigation Jump to search

Declaration

Save(FilePath as String) as Boolean

Description

This function saves the attachment in Bemet

Notes

Code example

This example adds a new attachment to calculationnumber 12345

Dim attachmentlist As PDCEXT.PdcAttachmentList = PDC.App.AttachmentList
if attachmentlist.Read("DO_CALC", "", "12345") then
  dim attachment = attachmentlist.add
  attachment.filename = "C:\test.txt"
  attachment.Save
end if