I can't name the shapes with the [ and ] characters. Gives me an invalid component name error.
I've tried:
shape myShapes[11];
myShapes[0] = Shape1;
myShapes[1] = Shape2;
but it says...
Type: Posts; User: middric
I can't name the shapes with the [ and ] characters. Gives me an invalid component name error.
I've tried:
shape myShapes[11];
myShapes[0] = Shape1;
myShapes[1] = Shape2;
but it says...
Well i have a set of shapes on my form called Shape1 through to Shape11. How do I relate those shapes to positions in the myShapes array?
so myShapes[1] would refer to Shape1..
ok, so I have defined a shape class in my unit1.h file and put shape myShapes[11]; in my unit1.cpp file.
How do I relate the shape array to shapes on my form?
I have no other files.. I'm confused as to where and how i define and then declare the shape/s.
Ok,
//---------------------------------------------------------------------------
#ifndef Unit1H
#define Unit1H...
Ok, just trying it on a brand new form:
#include <vcl.h>
#pragma hdrstop
#include "Unit1.h"
//---------------------------------------------------------------------------
#pragma...
Thanks for the help, but how do I go about creating an array of shapes?
shape myShapes[11]; brings up an undefined symbol 'shape' error.
Hey,
Is it possible to add a character to the end of a variable name?
I have a set of shapes on my form. The shapes are named Shape1 through to Shape11. The object is to get the shapes moving...