Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Arrays and undefined error
Message
De
06/09/2005 10:38:26
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
06/09/2005 10:36:16
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:
01047013
Vues:
18
This message has been marked as a message which has helped to the initial question of the thread.
>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.
>
>Dimension Results(39,2)
> For DimensionCount = 1 to Nodecount
>  Results(DimensionCount,2) = DimensionCount
> Next DimensionCount
>
>Vas is los mit der crankinerror?

Since the array is defined somewhere else, you should explain that to the compiler, by typing the following in part5.prg:
external array results
If you don't, your program will still work, but you will get the error message at compile time.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform