I didn't know that the Objects object also had an Objects object. This method works for me both in VFP 6.0 and 7.0. Great suggestion!
I think I may turn my template form files in to classes as well. It's time to get with the times.
>David,
>
>>I tried your suggestion of using the _VFP.Objects collection.
>>I opened a form in design mode (MODI FORM) and entered these commands in the command window:
>
>I think John has provided a solution for you. Regarding the Objects collection, this works for me:
>
>
>_VFP.Objects(1).Objects(1).Caption = "Banana"
>
>
>will change the caption of a form that was opened with MODI FORM.
>
>Regards,
>Armin