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