Message 1 of 3

Not applicable
02-19-2018
12:24 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Is it possible to loop through clash results in ComAPI with a for loop (not a foreach loop)? The approach below does not seem to work.
for (int i = 0; i < ComApi.InwOclTestResult.results().Count; i++)
{
if (i == 30)
{
ComApi.InwOclTestResult oRes = ComApi.InwOclTestResult.results()[i];
//do something
}
}
This method seems to work well, but I am unable to access a clash result by it's index:
foreach (ComApi.InwOclTestResult varialbe in ComApi.InwOclTestResult.results())
{
//do something
}
Solved! Go to Solution.