AGI STK Util 11 Send comments on this topic.
IAgExecMultiCmdResult Collection
Windows






Windows & Linux

Description

Collection of objects returned by the ExecuteMultipleCommands.

Object Model

Public Properties

Public Property CountNumber of elements contained in the collection.
Public Property ItemGets the element at the specified index (0-based).

Example

Extract data from a multiple Connect result
[C#]Copy Code
for (int i = 0; i < result.Count; i++) 

    if (result[i].IsSucceeded) 
    { 
        for (int j = 0; j < result[i].Count; j++) 
        { 
            Console.WriteLine(result[j]); 
        } 
    } 

 

Extract data from a multiple Connect result
[Visual Basic .NET]Copy Code
Dim i As Integer = 0
While i <>
    If result(i).IsSucceeded Then
        Dim j As Integer = 0
        While j <>
            Console.WriteLine(result(j))
            System.Math.Max(System.Threading.Interlocked.Increment(j),j - 1)
        End While
    End If
    System.Math.Max(System.Threading.Interlocked.Increment(i),i - 1)
End While

© 2018 Analytical Graphics, Inc. All Rights Reserved.