Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Compile error
Message
De
27/04/2001 16:12:54
 
 
À
27/04/2001 16:08:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Divers
Thread ID:
00501015
Message ID:
00501019
Vues:
21
>I periodically use arrays within reports for added flexibility. These arrays are generally declared private in the source that runs the report. When I compile I get a compilation error stating that the array is not defined. This doesn't affect the runtime app, but does annoy me to see errors during compilation. Several years ago I talked to Drew Speedy at DevCon '96 about this and he gave me an answer that worked, but for the life of me I cannot remember how this was done.
>
>Any help will be appreciated.


I don't know what Drew said, but this will work:

1. At the bottom of your MAIN.PRG, create a procedure called DUMMY
2. Define each array like: PUBLIC MyArray[1]
3. You *never* call this procedure, so it doesn't affect runtime. It's sole purpose in life is to get the compiler to shut up.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform