for ix = 1 to 10 * lcNewName = "myButton"+padl(ix,2,"0") <del>* thisform.addobject(lcNewName)</del> * thisform.addobject(lcNewName, "CommandButton") *or <del> thisform.addobject("myButton"+padl(ix,2,"0"))</del> thisform.addobject("myButton"+padl(ix,2,"0"), "Commandbutton") with eval("myButton"+padl(ix,2,"0")) .Top = .Height * (ix-1) + 5 .visible = .t. endwith endforcetin