Arraysize]: how i use it?

Questions about MultiCharts and user contributed studies.
turbofib
Posts: 213
Joined: 11 May 2013
Has thanked: 67 times
Been thanked: 1 time

Arraysize]: how i use it?

Postby turbofib » 09 May 2020

hi, i need to resize array but i look documentation and i don't find any information
Attachments
Immagine.png
(14.79 KiB) Not downloaded yet

User avatar
JoshM
Posts: 2195
Joined: 20 May 2011
Location: The Netherlands
Has thanked: 1544 times
Been thanked: 1565 times
Contact:

Re: Arraysize]: how i use it?

Postby JoshM » 10 May 2020

hi, i need to resize array but i look documentation and i don't find any information
If you have a dynamic array, you can resize it with the `Array_SetMaxIndex()` function. That function needs two values: the array to resize and the array's new maximum index (length).

`Array_GetMaxIndex()` returns the size (length) of an array, which is helpful in case you want to expand an array with x more elements. :)


Return to “MultiCharts”