PdcAttachmentList.Delete

From External Bemet Wiki
Jump to navigation Jump to search

Declaration

Delete(index as Integer) as Boolean

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
  if attachmentlist.Delete(1) then
    msgbox("attachment is deleted")
  end if
end if

Availability

Bemet 2022R3