Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Including a file w/ project hook
Message
De
04/02/2004 14:50:58
Randy Riegel
Zimish Contracting
Ohio, États-Unis
 
 
À
04/02/2004 14:40:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de projet
Divers
Thread ID:
00873991
Message ID:
00874139
Vues:
13
>You need to find corresponding File object in Files collection of Project object.
>The code may look so:
>
>FOR EACH oFile IN oProject.Files
>  IF oFile.Name == cName THEN
>    oFile.Exclude = .F.
>    EXIT
>  ENDIF
>ENDFOR
>
>
>Where oProject is a Project object.
>
>Currenctly I don't know how to access corresponding Project object from ProjectHook object. You can use Application.ActiveProject property but this may do not work if you use BUILD EXE command. Otherwise you need to search Application.Projects collection to find a Project object with corresponding name. Tell me if you know easy way to access Project object from it's ProjectHook.


Well, when I add files from within the project hook I use:

_vfp.activeproject.files.add(cFilename)

Randy
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform