In both 5.0 and 6.0
_SCREEN.FORMCOUNT
and
_SCREEN.FORMS(X).NAME
work for me at design time. Don't have VFP 7 at work to check.
>This works the same in 6 and 7. Forms() and FormCount only apply to running forms.
>
>>In VFP 7 if I issue the commands:
>>
>>MODIFY FORM "c:\program files\microsoft visual studio\vfp98\form1.scx"
>>?_SCREEN.FORMCOUNT
>>
>>It returns zero..
>>
>>Is there another way I can do this. I made a form converter in VFP6 that does something like...
>>
>>_SCREEN.FORMS(2).NAME=_SCREEN.FORMS(1).NAME
>>_SCREEN.FORMS(2).COMMENT=_SCREEN.FORMS(1).COMMENT
>>
>>So I need the form count to work.
>>
>>
>>Of course I can just use VFP6 but I was wondering if there is something I'm missing.
>>
>>Another thing is this _SCREEN object. A few times I have been able to browse
>>the screens properties like a form in the property window. I don't know how I got it to come up..How does this work?
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison