Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Arrays and undefined error
Message
From
06/09/2005 10:38:26
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
06/09/2005 10:36:16
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01047012
Message ID:
01047013
Views:
19
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)
Previous
Reply
Map
View

Click here to load this message in the networking platform