Login
Back to forumSee the full topicGo to last reply

Posted By

SVS
on 2020-02-16
09:48:11
 Re: Redimension Arrays (Basic)

The structure of an array is complex 'cause its ability to manage multiple dimensions. Then reducing the number of elements would not be just a shorting operation, cutting off the exceeding parts.
Of course nothing is impossible on coding, but I suppose an array-reducing routine should be so complex and slow to become unconvenient.
In my programs I'm used to calculate the number of elements before to allocate the array. Not everybody knows that the DIM() accepts variables too, then DIM(in%) can be a flexible way (eventually coupled with a flag-variable to remember if the array is already allocated or not).



Back to top


Copyright © Plus/4 World Team, 2001-2024