PdcAttachmentList.Add

From External Bemet Wiki
Revision as of 14:35, 28 July 2023 by TC (talk | contribs) (Created page with "== Code example == This example adds a new attachment to calculationnumber 12345 <source lang="vb.Net"> Dim attachmentlist As PDCEXT.PdcAttachmentList = PDC.App.AttachmentList...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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