753 views
in GUI Development by

Hi Gents,

 How does one dymanically change the size of an array? myArray.Dimension = x; doesnt work

Also, how does one change the value of an array from within a native() block of code? As...

   var device = EmWiApp._GetAutoObject( EmWiApp.Application.Device );
   device.myArray[1] = 0; 

... doesn't work. Yet...

   device.myVar = 0;

...does work.

1 Answer

0 votes
by
 
Best answer

Hello,

The size of arrays can be defined at design time only - there is no possibility to change the size of an array during runtime. Maybe, following article can help you further:

Dynamiclly modify the array's size

Regarding the access to arrays from native code please see the section: Exchange array contents. Also possible approach: implement the corresponding code in Chora, generate the C code from it and analyze/copy the corresponding C code to your native code.

Best regards

Paul Banach

Ask Embedded Wizard - Archive

Welcome to the Ask Embedded Wizard archive. This community forum served us well for many years, but we've evolved our support approach!

Your resources:

The Embedded Wizard Online Documentation provides comprehensive documentation, tutorials, examples and ready-to-use software packages.

For dedicated assistance, explore our Embedded Wizard Product Support.

You can still browse the valuable discussions from our community history here.

Embedded Wizard Website | Privacy Policy | Imprint

...