Array Entry

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Post Reply
danadak
Posts: 2
Joined: Mon Dec 13, 2021 1:05 pm
Contact:

Array Entry

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

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Array Entry

Post 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

danadak
Posts: 2
Joined: Mon Dec 13, 2021 1:05 pm
Contact:

Re: Array Entry

Post by danadak »

Thankyou for the help.

Regards, Dana.

Post Reply