APS (Advanced Planning and Scheduling) Asprova APS

 
Home > FAQ > COMDeleting the comment by the COM
FAQ
[[ COM ]]

Deleting the comment by the COM

Search in FAQ:

Q:There are 4 comments and when try to delete the comment 4,execute the Add-in of the follow code
Dim pSelOrder As ASBOrder
Set pSelOrder = args.ArgAsObject(kArgOrder)
pSelOrder.Comment(4) = ""
The Comment 4 is deleted. However, the whole comments became {comment1;comment2;comment3;} which still has";" after it.How to delete it

A:

Please do the follow Add-in to delete it

Dim utils As ASFUtility
Set utils = args.ArgAsObject(kArgUtility)
Dim result As Boolean
result = utils.Remove(prodTask, AsLib.kASBOrder_Comment, 4)


>>Back To [ COM ]