egArray was not declared in this scope

Its true?

If you read the instructions on how to use the forum well,

" How to get the best out of this forum"
so you shouldn't post code image.
Post the complete code using the appropriate tags.