Initializing an array

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

Post Reply
DrElmer
Posts: 7
Joined: Wed Sep 04, 2019 1:46 pm
Has thanked: 17 times

Initializing an array

Post 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)?

Alkaline
Posts: 143
Joined: Mon Aug 20, 2018 11:04 am
Has thanked: 42 times
Been thanked: 41 times

Re: Initializing an array

Post 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

DrElmer
Posts: 7
Joined: Wed Sep 04, 2019 1:46 pm
Has thanked: 17 times

Re: Initializing an array

Post 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.

stefan.erni
Valued Contributor
Valued Contributor
Posts: 654
Joined: Fri Aug 19, 2016 2:09 pm
Location: switzerland
Has thanked: 182 times
Been thanked: 179 times

Re: Initializing an array

Post 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

Post Reply