I created an object array when a button is clicked. When I try to use any of the objects in another function, it is saying that it's an undeclared identifier.
What do I need to do to make sure I can use 'picBlocks[k]' anywhere else in my code?
Object Array created here:
public: System::Void menuFile_Click(...)
PictureBox* picBlocks = new PictureBox*;
for(int i = 0; i < 5; i++)
picBlocks[i] = new PictureBox();
Trying to access object here in a different function:
if(picBlocks = xxxx) <---says picBlocks is undeclared
Blah Blah Blah
This is for Visual C++ .NET. It's a Windows Forms Application.
Thanks for the help!