Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

Aggregating an array

Anonymous
Not applicable
I'm trying to allow the user to input an arbitrary number of strings and then aggregate them into a single string with custom formatting. Is this possible? The two limitations I have at the moment are allowing the user to expand the array as needed, and then how to iterate over the array without knowing the size "a priori". Is their a function to return the dimensions of an array? Can an array be dynamically resized based on user input?

Thanks in advance.
1 REPLY 1
Ralph Wessel
Mentor
Cleverbeans wrote:
Is their a function to return the dimensions of an array? Can an array be dynamically resized based on user input?
You can get the dimensions of an array with vardim1 and vardim2. For dynamic arrays, take a look at this topic.
Ralph Wessel BArch