Technical FAQs

Ask a Question

Resizing an array of topological variable leads to lose initial values and comments associated to the element

Goals and Symptoms

If you use an array (ex : MyArray : ARRAY[0..9] OF EBOOL) with comments and/or initial values for the elements of the array, at the moment you will resize the array (ex: ARRAY[0..10] OF EBOOL) you will lose all the comments and initial values of the elements.

Causes and Fixes

The workaround is to use DDT array. Define an array in DDT tab of DataEditor, and after create instances of this type. Then if you resize the type you will not lose the comment of the instance.

Was this helpful?
What can we do to improve the information ?