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






Windows & Linux

Description

Collection of strings returned by the ExecuteCommand.

Public Methods

Public Method Range Return the elements within the specified range.

Public Properties

Public Property Count Number of elements contained in the collection.
Public Property IsSucceeded Indicates whether the object contains valid results.
Public Property Item Gets the element at the specified index (0-based).

Example

Extract data from Connect result
[C#] Copy Code
if (result.IsSucceeded) 

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

 

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

© 2017 Analytical Graphics, Inc. All Rights Reserved.

STK 11.2.1 Programming Interface