Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

How to read the content of the ResultList in a C# code module?

Hi,

 

How to read the content of the ResultList in a C# code module? 

 

public void LogUutData(Execution execution)

{

    PropertyObject propertyObjectResult = execution.ResultObject.GetPropertyObject("ResultList", PropertyOptions.PropOption_NoOptions);     for (int intCounter = 0; intCounter < propertyObjectResult.GetNumElements(); intCounter++)

    {

        object objResult = propertyObjectResult.GetValVariantByOffset(intCounter, PropertyOptions.PropOption_NoOptions);

       // How to read the content of objResult?

    }

}

 

I suppose the methods used in the code snippet are correct.
How do I have to handle an object to read the content, the information about this issue in the help file is really limited.

 

Does anyone know how to do this, or are there better alternatives to iterate through the ResultList, any help will be highly appreciated.

 

Best regards

0 Kudos
Message 1 of 1
(2,880 Views)