Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Array support multiple index
Message
De
14/11/2003 14:20:15
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
14/11/2003 11:32:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00849929
Message ID:
00850003
Vues:
22
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)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform