Dear all,
I am having a problem using DLLs in FlexSim to access an array label in an object of my model. The label itself is an array that contains arrays in each element of it:
I've created a model and a DLL to exemplify the situation, both follow attached.
The DLL is called by an user command with DLL template, and the code of the DLL contains the following:
Basically the DLL receives the object, reads the matrix label and tryes to read the 3rd element of the 1st element of the array. Running the code this way does not work, getting me an exception at the System console:
But if I comment the line of number attribuition and ask to the DLL print the array
It works nice and prints me te following:
What should I do so I can access the data in that array by DLL? Since I've tried to use Variant, int, double, another array and I can't get these data out of the label.
Thanks in advance.