Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DO command not adding prg to project
Message
De
29/03/2017 10:41:52
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01649484
Message ID:
01649487
Vues:
53
>Hi all,
>I have a project that I use to export reports into excel for customers. what the customer sees depends on parameters set on the system. some reports are complicated or too long for 1 prg so I've split them into multiple prg files and have a calling prg and inside that I have commands like
>
>do program_nominal
>
>and when I compile the project the prg file program_nominal is automaticaly included in the project. This has worked well in the past but on a recent file it hasn't worked. I've deleted and rewritten the code, made sure that the files are in th ecorrect folder etc. but on compiling the project will still not pull in the prg. Any ideas?
>~M
A few stabs in the dark:

Are you referencing "program_nominal" directly, or indirectly? If indirectly such as:
cProcName = "program_nominal"
DO (cProcName)
you might want to have "EXTERNAL program_nominal" somewhere

Do you happen to happen to have any PRG that defines a procedure or function with that name? I sometimes add PRGs to a project containing "stubs' of procedure/function (i.e. just the PROGRAM or FUNCTION heading) and tag such PRGs as excluded. This would be done in cases where I want to keep that code external to the module.

Do you happen to have any #IF, #IFDEF, #IFNDEF blocks in the calling code?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform