Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
List Forms in project that are based on a given class
Message
From
18/11/2010 14:26:35
 
 
To
18/11/2010 14:14:36
General information
Forum:
Visual FoxPro
Category:
Project manager
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01489643
Message ID:
01489649
Views:
79
This message has been marked as the solution to the initial question of the thread.
>Hi All,
>
>I haven't had the need to do this much, but I want to get a list of all the forms in one of my projects that are based on a given form class. I believe that information is in the SCX, so I suppose I could get a directory list of all .scx files and serially open them as tables to look for that.
>
>Is there another approach that might be easier?

Use the Project object to get to all the forms. Then check the FileClass property of each form:
MODIFY PROJECT <your project>
oProject = _VFP.ActiveProject
FOR EACH oFile IN oProject.Files
  IF oFile.Type = "K"
    IF oFile.File = "The one you want"
       * Track it however you want
    ENDIF
  ENDIF
ENDFOR
Now, if you want to know all the ones based on a class or one its subclasses, you'll have to a little more.

Tamar
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform