Idea Details

Define array with variable size

Last activity 06-13-2019 09:16 AM
Tim Quakulinsky's profile image
04-13-2018 04:40 PM

#FOKUS
Arrays can only be created during the variable declaration by using :DEFINE. The third parameter defines the number of values (index area) and must be a number without inverted commas (allowed values: 1 to 99999). E.g.
:DEFINE &array#, unsigned, 10

Sometimes the size is not equal for each activation of the same task. Because of this you have to define the array with a much larger size than actually needed.

The :DEFINE function should be optimized so that a variable could also be used as the third parameter. E.g.
:DEFINE &array#, unsigned, &size#


Comments

05-18-2018 12:47 AM

Legacy enhancement request ID: PMPER-2031

05-18-2018 12:47 AM

Add the ability to redefine the array to increase the size as well.

05-18-2018 12:47 AM

That would be very interesting..
It would also be necessary to have a function which verifies if a variable (or an array) is defined..

05-18-2018 12:47 AM

also for me quite annoying. I have to write additonal code to get the real array size for the loop over the array.