APS (Advanced Planning and Scheduling) Asprova APS

 
Home > FAQ > COMSet the position of the comment by the COM
FAQ
[[ COM ]]

Set the position of the comment by the COM

Search in FAQ:

Q:Right click at the left of the order gantt chat to make a programin which can make or delete a special comment to the order by VB6. (KeyPopupOnOrderGanttChartLeft)
Question①
make a comment 4 as test to the order without comment before execute the Add-in of the follow code

Dim pSelOrder As ASBOrder
Set pSelOrder = args.ArgAsObject(kArgOrder)
pSelOrder.Comment(4) = "test"

But the "test" comment is writen into the comment 1.Is the way of writing code is wrong.

A:

No,it is right.If you want to make a comment into the fourth one, please also make three comments with nothing like the follows.

 pSelOrder.Comment(0) = ""
 pSelOrder.Comment(0) = ""
 pSelOrder.Comment(0) = ""
 pSelOrder.Comment(4) = "test"


>>Back To [ COM ]