Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
List Forms in project that are based on a given class
Message
De
18/11/2010 14:26:35
 
 
À
18/11/2010 14:14:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de projet
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Divers
Thread ID:
01489643
Message ID:
01489649
Vues:
78
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform