Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dynamic Include File.
Message
De
18/08/2004 15:53:50
 
 
À
18/08/2004 15:20:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00934230
Message ID:
00934241
Vues:
19
I've never tried that, but my guess is that you can't do it because the include information is used at compile time, not run time, while macros are runtime critters.

Alan

>Hi,
>
>In FoxPro, we can use the following command to include an include file.
>
> #INCLUDE "\dbapps\test\include\test2004.h"
>
>I want to dynamically include an include file, e.g.
>
> lcFilename = "\dbapps\test\include\test2004.h"
> #INCLUDE (lcFilename)
>
>This gives "File does not exist" compile error.
>Even the following does not help.
>
> #INCLUDE Evaluate(lcFilename)
> #INCLUDE &lcFilename
>
>I tried EXTERNAL FILE lcFilename, but it also does not help.
>
>Has anyone tried this? Is it possible what I am trying to do?
>
>Thanks.
>
>- Ravi
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform