Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Find all forms in project with height above x?
Message
From
16/01/2013 04:02:32
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01562803
Message ID:
01562925
Views:
42
>>My client has got new laptops for a bunch of users, and the screen resolution is not as good as the old ones.
>>What I'd like to do is cycle though all the forms in my project and see which ones have a .height > 700. Is there a quick way to do this?
>
>You could create a .prg to load all your forms into an array (if they are all in the same folder) and then scan the array. Open each form (with USE as a .DBF) and check the value of the .height property. I have not tried this but in general tried this approach when I need to find something in all my classes or all my forms.

And to check the height use strextract(properties, "height=", chr(13), 1, 1+2) to get the value (may need to do so repeatedly, properties of contained objects may be in the same memo).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform