Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Arrays and undefined error
Message
From
06/09/2005 10:45:30
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
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:
01047016
Views:
20
>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
>
Interesting workaround - but in this case, EXTERNAL ARRAY does seem simpler. And, I think it doesn't create an executable statement. (The IF will actually be evaluated, wasting a tiny fraction of a second.)
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
Next
Reply
Map
View

Click here to load this message in the networking platform