STK UtilSend comments on this topic.
IAgExecCmdResult Interface

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).

CoClasses that Implement IAgExecCmdResult

Example

Extract data from Connect result
[C#]
if (result.IsSucceeded)
{
    for (int i = 0; i < result.Count; i++)
    {
        Console.WriteLine(result[i]);
    }
}
Extract data from Connect result
[Visual Basic .NET]
If result.IsSucceeded Then
	Dim i As Integer = 0
	While i < result.Count
		Console.WriteLine(result(i))
		System.Math.Max(System.Threading.Interlocked.Increment(i),i - 1)
	End While
End If
© 2024 Analytical Graphics, Inc. All Rights Reserved.