>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
Cetin,
How in blue blazes did you find that? When I saw your post (and knowing you as I do), I said, "OK, he's knows something here", and went off trying to find out (via the usual sources). Nothing! Objects isn't documented anywhere in the MSDN Library. I tried the debugger (and something slightly similar to your code above). All I saw was the Objects property. C'mon, share. How did you find this?:-)
George
Ubi caritas et amor, deus ibi est