Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Array support multiple index
Message
From
14/11/2003 14:39:00
 
 
To
14/11/2003 14:20:15
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00849929
Message ID:
00850016
Views:
22
Hi Hilmar,

---------
I am sure it isn't. For a start, Visual FoxPro should complain, either at compile-time or run-time, about the excessive parameters. Also, the results aren't at all consistent. You would at least expect the excessive parameters to be ignored.

Yes, VFP check 65000 max bound for first value, then choice first or second index.
CLEAR
DIMENSION arr1[10]
FOR k=1 TO 10
STORE STR(m.k) TO arr1[m.k]
NEXT
? arr1[1,9]
? arr1[65000,9]
? arr1[9,65000,65000]
? arr1[9,65000,65001]
? arr1[9,660000,0]
? arr1[65001,9]  && invalid
? arr1[65000,11] && outside
Fabio
Previous
Reply
Map
View

Click here to load this message in the networking platform