215 views
in GUI Development by
Hi,

I want to pass one array as an argument to one method. When the size of the array got reduced to some lower value, I want to dynamically update the array size, so that it'll store the respective arguments only. How to implement this one

Thanks,

Dinesh

1 Answer

0 votes
by

Hello Dinesh,

in the actual version arrays can't be resized dynamically. Please see the chapter Determine the size of the array. You will need to prepare the array with the max. capacity needed in your application case.

Furthermore, passing array as an argument in method invocation is not possible. You will need to create a class containing the array and pass an object of this class in the argument. With this approach, you can manage in the class also some 'Size' or 'Count' variable identifying the number of items occupied actually in the array.

I hope it helps you further.

Best regards

Paul Banach

Ask Embedded Wizard

Welcome to the question and answer site for Embedded Wizard users and UI developers.

Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!

Embedded Wizard Website | Privacy Policy | Imprint

...