Mark,
You should go a little deep to reach form ref :
FOR EACH oObject IN _vfp.objects
FOR EACH oSub IN oObject.Objects
FOR EACH oSub1 IN oObject.Objects
IF oSub1.Baseclass = 'Form'
? oSub1.Caption
endif
endfor
endfor
endfor
However I use a simplier one I forgot to say :
ON KEY LABEL 'f2' oForm1 = SYS(1270)
ON KEY LABEL 'f3' oForm2 = SYS(1270)
ON KEY LABEL 'f4' oForm3 = SYS(1270)
Go on forms I desire and 'F2','F3','f4'...
Cetin
>>Tim,
>>In design mode use _VFP.objects instead.
>
>In VFP 6, the following works on the current form in the form designer:
>
>? _vfp.forms(2).Name && in my case the number was 2. YMMV
>
>In VFP 7, modifying the same or any form returns an error message -- member forms does not evaluate to an object.
>
>In 6 and 7, I can not access any form properties of the form in the designer using _VFP.Objects.