Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
I am having a annoying and strange problem, for example when I try to get one ComponentOccurrence from the object ComonentOccurrences. Usually I would use the [] notation and this is also allowed by the compiler but I am always gettings exceptions when using it. Of course I made sure that the index is actually contained. Is there a way to resolve these kind of collections?
Thanks a lot
This throws during runtime: (System.ArgumentException: "Wrong Parameter. (0x80070057 (E_INVALIDARG))")
var test = assemblyDocument.ComponentDefinition.Occurrences[0];
This is the VBA:
SET test = assemblyDocument.ComponentDefinition.Occurrences.Item(1)
Solved! Go to Solution.