Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Array support multiple index
Message
From
14/11/2003 14:20:15
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
14/11/2003 11:32:32
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00849929
Message ID:
00850003
Views:
24
I am sure it isn't. For a start, VFP 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.

>Hi,
>
>this is all correct ?
>
>
>CLEAR
>DIMENSION arr1[10],arr2[1,10]
>FOR k=1 TO 10
>STORE STR(m.k) TO arr1[m.k],arr2[1,m.k]
>NEXT
>? arr1[1],arr2[1,7]
>? arr1[7,1],arr2[2,7,1]
>? arr1[1,7],arr2[1,7,1]
>? arr1[1,2,7],arr2[1,7,1]
>? arr1[1,2,7,6],arr2[1,7,123123,34,5767,56]
>
>
>Fabio
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