>I'm using vfp 3.0 in win 95
>
>I have been experiencing trouble when trying to use a form for multiple purposes.
>
>When trying to control a form from another form, code doesn't work properly, however
>when code is put into activate of form I'm trying to control it works fine.
>
>Any thougts?
>
>If your using the form for more than one purpose and you have code in activate or init
>of form, is there a way to override these two properties from another form?
>
>Thanks in advance!
Make sure that your form object is referenced by a public variable.
like...
PUBLIC goMyForm
DO FORM myform NAME goMyForm
or in the init....
PUBLIC goMyForm
goMyForm = THISFORM
You should be able to remotely control this form with goMyForm.MyMethod, or whatever.
Hope this helps
Matt
Matt McDonnell
...building a better mousetrap with moldy cheese...