Hi
Can FC7.3 do 2d Arrays yet?
thanks
FC7 2D Arrays
Moderator: Benj
-
- Valued Contributor
- Posts: 1191
- Joined: Wed May 31, 2017 11:57 am
- Has thanked: 70 times
- Been thanked: 440 times
- Contact:
Re: FC7 2D Arrays
Hi,
As mentioned in previous posts on this topic - FC can do 2d arrays.
I did a simple example:
Note that I use an Assign function to assign each string to the array (this is a limitation of C rather than FC - you can initialise variables at their declaration rather more succinctly)
This just declares a 2d array (10x10) to assign a string to the digits (0 = ZERO etc) - then just dumps them to UART...
Martin
As mentioned in previous posts on this topic - FC can do 2d arrays.
I did a simple example:
Note that I use an Assign function to assign each string to the array (this is a limitation of C rather than FC - you can initialise variables at their declaration rather more succinctly)
This just declares a 2d array (10x10) to assign a string to the digits (0 = ZERO etc) - then just dumps them to UART...
Martin