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
Best answer


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

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