Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP 7 Beta 1 Formcount and _SCREEN
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00523544
Message ID:
00523680
Views:
19
>Yes, but that is only for forms that are currently running. He is looking for an object reference to the form currently being edited in the form designer.

Not on my VFP 6.0 SP5 it isn't. I can get a reference to not on a form being edited, but custom class in the designer as well.


>>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?
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform