Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP 7 Beta 1 Formcount and _SCREEN
Message
From
26/06/2001 14:11:28
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00523544
Message ID:
00523716
Views:
15
This message has been marked as the solution to the initial question of the thread.
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.
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform