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 RangeReturn the elements within the specified range.

Public Properties

Public Property CountNumber of elements contained in the collection.
Public Property IsSucceededIndicates whether the object contains valid results.
Public Property ItemGets 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

© 2018 Analytical Graphics, Inc. All Rights Reserved.