thisform.AddObject("shape1", "shape") WITH thisform.shape1 .top = 10 .left = 15 .height = 8 .width = 8 .backcolor = RGB(64,0,64) .visible = .t. .enabled = .F. ENDWITHBut for a bunch of squares the correct implementation is:
thisform.Addproperty("Shapes[ShapeCount]",NULL) ..... loop start thisform.AddObject("Shapes["+LTRIM(STR(m.k))+"]","myShape",tableParametersforTheShape) ..... loop endFabio