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

Click here to load this message in the networking platform