>FOR i = 1 TO 80 >c='cmd'+ALLTRIM(STR(i)) >thisform.AddObject(m.c,'commandbutton') with evaluate('thisform.' + m.c) .visible = .t. && you also need to set top and left properties endwith >nextYes, you need to explicitly set visible property to true. See changes inside.