02-10-2014 02:12 AM
Hi All,
I get a message of UIMsg_ModelState_EnabledStateSet and I'm trying to get the "ModelType" variable that located at the first index of the array.
The COM array I got from line:
PropertyObject myArrayVariable = (PropertyObject)uiMsg.ActiveXData;
PropertyObject[] value = myArrayVariable.GetSubProperties("Parameters.ModelData", 0);
value is an array and have 15 places.
How can I get the variable base on location???
Tnx
02-10-2014 09:09 AM
You should be able to use the GetPropertyObjectByOffset() method to access elements in the array. For example, if you wanted to access the third element in your array: myArrayVariable.GetPropertyObjectByOffset(2,0)
Hope that helps, and let us know if you have any more questions about it!