I've just discovered that MAT statements don't work with arrays within user defined types.
For example, given a UDT
And
I can access P.State() and P.Transition() as arrays in the normal way, but I can't do assignments such as
These result in compile time error 526: Period not allowed. Of course it's not a big deal to do matrix operations the long way round, but it would be good to have the convenience of MAT statements with UDTs sometimes. A New Feature Suggestion has been lodged with those nice people at [email protected]...
For example, given a UDT
Code:
TYPE Population State(1 to 3) as EXT Transition(1 to 3,1 to 3) as EXT END TYPE
Code:
LOCAL P as Population
Code:
MAT P.State()=AnotherVector() MAT P.State()=ZER MAT P.Transition()=IDN
Comment