ARRAY

rwellsw

Active Member
I am trying to figure out how to use the occurance to make an array. I have set up a data item with an occurance of 10.

When I go to event rules to use the field I need to make another field equal to the 5th occurance or item in the array. But I can't figure out how to get the index for the 5th occurance. I want to use a math01 field as the index so that I can add to it and get any occurance or elements I need.

Any help or examples would be appreciated.

Thanks
Roger
 
Hi Roger,

Bad news.
Item Occurences field in OW Data Dictionary does not mean a real array.
The only funcionality of it is to generate further data items (as much as you entered here) with the same attributes and suffixed the name with a number.

For example you add a DD item named MONTH end enter 12 as occurences then MONTH01, MONTH02...MONTH12 data items will be automatically generated with the same attributes but different names - all will be a pure single data item instead of an array :(

For the reason of above you can not use an index to point to an array element.

Sorry for the bad news.

Zoltán
 
Back
Top