Hello,
I am developing on .NET/ C# platform.
I am trying to programatically get the elements or fields (their types) within each container of a array of containers. As per documentation using the property object of the array I first call the following:
arrayObject.GetDimensions("", 0, out lowerBounds, out upperBounds, out numElements, out elementType);
the return values for lowerbounds/upperBounds/numElements are correct. Also elementType returns
PropValType_Container and this is correct because it is an array of conatiners.
And now to iterate through all the elements in the array container as per documentation, I am supposed to iterate through all the properties of "arrayObject.ArrayElementPrototype". But "arrayObject.ArrayElementPrototype" is NULL.
How do I iterate thorugh all the elements or fields of an array container?
In the example I am using I have an array of containers and each container has a string field. Also what would happen if the container in the first index is different from the container in the 2nd index. TestStand does not seems to complain about it. But what do I do programatically in this situation?
Thanks,
Harsha