Lets say I'm wanting to set the color of a shape in a graphical representation of some data. I have a mask to tell me what to do... for lnCnt = 1 to SliderPosition for lnCnt2 = 1 to SomeNumberOfShapes if occurs("T", lcCurMask) > 0 lcCommand = "this.Object"+allt(str(lnCnt-lnSlider+1))+; ".shape"+allt(str(lnCnt2))+".visible = .T." &lcCommand lcCommand = "this.Object"+allt(str(lnCnt-lnSlider+1))+; ".shape"+allt(str(lnCnt2))+".backcolor = rgb(0,255,0)" &lcCommand endif endfor endforThe example is not complete but basically I'm setting the visible and color properties of a row of shapes in an object based on the count minus the position of a slider control plus one. :)