PdcAttachmentList.Add: Difference between revisions
Jump to navigation
Jump to search
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..." |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
== Declaration == | |||
Add() as [[pdcAttachment]] | |||
== Description == | |||
This function will add a new attachment to the attachmentlist | |||
== Notes == | |||
== Code example == | == Code example == | ||
This example adds a new attachment to calculationnumber 12345 | This example adds a new attachment to calculationnumber 12345 | ||
Line 9: | Line 17: | ||
end if | end if | ||
</source> | </source> | ||
== Availability == | |||
Bemet 2022R3 |
Latest revision as of 14:37, 28 July 2023
Declaration
Add() as pdcAttachment
Description
This function will add a new attachment to the attachmentlist
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
Availability
Bemet 2022R3