>>What is regular reference "form1"? Did you get that reference by some means? Or simply using Form's name 'form1' as reference. Latter wouldn't work and have nothing to do with a timer.
>>Cetin
>I meant I used the form's name as a reference.
>To make it precise and concrete, I have a form named form1 and there's a timer named timer1 on it. When the form starts, it queries a lot of tables and the result is saved in an excel file.
>When it's finished I make the timer enabled by a prg file.
>My question is why it's worked upto now with this reference: "Form1.timer1.enadbled = .t." and why it now works with "_screen.ActiveForm.timer1.enabled = .t." when nothing has been changed.
>
>Tamas
Tamas,
'Form1' form name is never safe to use as a form object reference. In development IDE it works, because VFP do create a public variable with the scx name of the form or the name used in name clause. That naming differ between how a form is instantiated (do form, createobject()).
I don't use SP2. Maybe in SP2 they even changed the availability of that scx name based access.
Cetin