Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Shell program to call .fxp's
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00897250
Message ID:
00897331
Vues:
12
>Thank you. I didn't know about the Exclude property in the Project Manager.

If you're using VFP 6.0 or above, you can programatcally set the Exclude property by iterating through the Files collection. For example, the following procedure will give you an idea. It's being written off the top of my head, so it isn't debugged.
PROCEDURE ExcludeFile

  LPARAMETER tcFileName

  LOCAL loProject, loFile, lcFileName
  lcFileName = LOWER(JUSTSTEM(tcFileName))
  loProject = _VFP.ActiveProject
  FOR EACH loFile IN loProject.Files
    IF LOWER(JUSTSTEM(loFile.Name)) == lcFileName THEN
      IF NOT loFile.Excluded THEN
        loFile.Excluded = .T.
      ENDIF
    ENDIF
  ENDFOR
  RETURN
ENDPROC
Now if you were to create a meta data table containing the file names you want to exclude and use a project hook, you could make sure all the necessary files are excluded in the hook's BeforeBuild event.

That help?
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform