with thisform for lnI = 1 to 7 lnCnr = "(" + allt(str(i)) + ")" .addobject("Cal" + lnCnr, "DiaCalendario2", i, "thisform.lblDesc", m.luM, pkNov) .addobject("Enc" + lnCnr, "EncabDia") && ERROR HERE WHEN i=7 ONLY .Cal(lnI).move((lnI-1) * 50 + px, py + 22) .Cal(lnI).visible = .t. .Enc(lnI).move((lnI-1) * 50 + px, py) .Enc(lnI).visible = .t. endfor endwithRegards,