Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Arrays and undefined error
Message
De
06/09/2005 10:52:21
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01047012
Message ID:
01047025
Vues:
9
Or optionally, create code that will never be executed. Put this at the end of Main.prg
PROCEDURE Dummy
PUBLIC Results[1, 2]
ENDPRC
There is never a call to dummy, so the PUBLIC array will never be created, but the compiler stops complaining.


>I am getting this compile error:
>
>Program c:\gtb\part5.prg has the following errors:
>    Unknown RESULTS - Undefined
>
>Even though 'Results'is defined in a previous PRG. Here is that code.

>
>You need to trick the compiler. Sometimes it's enough to use these brackets: []
>
>but You will probably need the following section in the PRG that uses the array without defining it
>
>
>if .T. and .F.
>    define Results[39,2]
>endif
>
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