The "(" character is not valid in the objects name. When you use undocumented features you shouldn't be surprised by unexected behavior.
>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?
--sb--