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





Description

Collection of objects returned by the ExecuteMultipleCommands.

Object Model

Public Properties

Public Property Count Number of elements contained in the collection.
Public Property Item Gets 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

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1