Maybe Enc array is defined smaller?
>Hello
>I have a strange error that appears only when running the exe. Does not fail from VFP IDE
>
>In the INIT of a form I populate a couple of arrays of objects
>
>....
>with thisform
> for i = 1 to 7
> c = "(" + allt(str(i)) + ")"
> .addobject("Cal" + c, "DiaCalendario2", i, "thisform.lblDesc", m, pkNov)
> .addobject("Enc" + c, "EncabDia")
> .Cal(i).move((i-1) * 50 + px, py + 22)
> .Cal(i).visible = .t.
> .Enc(i).move((i-1) * 50 + px, py)
> .Enc(i).visible = .t.
> endfor
>
>
>Running the exe, SOMETIMES the line
>
>.addobject("Enc" + c, "EncabDia")
>
>
>fails ONLY when c is 7
>EncabDia, DiaCalendario2 are contained in a VCX, set classlib is OK.
>Any ideas?
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.