Converting serial data into an Array

I don’t understand why this won’t compile. I get this error.
error: ‘inputArry’ was not declared in this scope


HelloWorld_mod3.ino (3.05 KB)

The inputArry array is declared in setup(), as are other variables, but you are trying to use is in loop(), hence the error message.

By the way, try Auto Formatting your program and another problem will become apparent.

Thanks for the response UKHeliBob. I'm sorry, but I don't understand what you saying. I needed to declare the array in setup() so I can use it in loop()

If you declare the array in setup() you can only use it in setup(). Declare the array outside of any function and it will be global and accessible from any where.

Got it,. It now compiles Thank you