I have a Link type annotation with 3 actions: JavaScript (index 0), Launch (index 1) and Goto (index 2).
I need to change the Launch action to GoToR.
I see no way of changing the action type (is there?), so I thought to use:
Code: Select all
link's IPXC_ActionsList.AddGoToR -> this returns a new action and adds it as 4th action (index of action: 3)
link's IPXC_ActionsList.Remove (1) -> that is the position of the Launch action
link's IPXC_ActionsList.Insert (1, gotor action from [1]) -> so to insert/move GoToR to where Launch was
Is this a bug or by design?
p.s.
To "fix" I'm adding a new action into a newly created IPXC_ActionsList (just to be a dummy container) and then Insert (above) works as expected (because Add is not used on the original list).
-žarko