Page 1 of 1

Array Entry

Posted: Mon Dec 13, 2021 1:19 pm
by danadak
Using Flowcode 8 try to enter byte array and get "The initializer value is invalid" error.

Name of variable is BCDto7Seg[10]

Initializer type byte

Initializer values "0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x67" typed into
initial value entry window.
Flowcode error 1.jpg
Flowcode error 1.jpg (49.73 KiB) Viewed 4558 times
Note Flowcode on YouTube and its own videos on variables have no array discussion
in the training video.

Lastly how does one paste an image here that is not URL based ? Only attachment ?


Regards, Dana.

Re: Array Entry

Posted: Mon Dec 13, 2021 1:22 pm
by Benj
Hello Dana,

I beleive you need to have a few posts before you can attach files. Just a security precaution.

I beleive we added array initialisation in v9 but in v8 you have to do it the long way using a calculation icon in your program.

BCDto7Seg[0] = 0x06
BCDto7Seg[1] = 0x5b
...
etc

Re: Array Entry

Posted: Mon Dec 13, 2021 1:54 pm
by danadak
Thankyou for the help.

Regards, Dana.