Page 1 of 1

Initializing an array

Posted: Wed Sep 04, 2019 1:52 pm
by DrElmer
Is it possible to initialize an array when it is declared or do the values have to be loaded later (i.e. in a calculation block)?

Re: Initializing an array

Posted: Wed Sep 04, 2019 2:21 pm
by Alkaline
Hi
You can initialize the array using a calculation icon, otherwise I suggest you use a lookup table where you can enter values ​​directly from the configuration panel

Re: Initializing an array

Posted: Wed Sep 04, 2019 3:03 pm
by DrElmer
That is what I have been using as a work-around, but what I wanted to do was to initialize the array with initial values (the same as non-array variables). The Flowcode new variable dialog box appears to support this but I can’t get it to take initial values.

Re: Initializing an array

Posted: Thu Sep 05, 2019 5:03 pm
by stefan.erni
Hi

Several times I had to set a large array by hand. The longest had 800 lines for pixel of a display. I wrote that with an editor and then inserted (copied) in the calculation. Then I took away with the right mouse button "annotations show". And my FC8 program was again well arranged.

regards

Stefan
show.PNG
(12.08 KiB) Downloaded 635 times
hide.PNG
(4.19 KiB) Downloaded 635 times