Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Array Dimensions - Confusing VFP
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00687552
Message ID:
00687844
Vues:
15
Hello!

All I wanted to say was: It confuses me that a 1 Dimensional Array is used in FoxPro like this.

Dimension myArray(3)
myArray(1)=1
myArray(2)=2
myArray(3)=3

The ?myArray(3,1) returns 1 because FoxPro used it as a Row. I thought it should be 3.
FoxPro itself used the Array like this:
myArray(1,1)=1;myArray(1,2)=2;myArray(1,3)=3

What confuses is that FoxPro does NOT give me an ERROR when I try to get the
?myArray(3,1)...but gives me the first Array Value... why is that so?
This seems to be a Bug for me.

I tried to make code, that handles 1..n Dimensional Arrays. But it is not Possible for me to get the Dimensions programmatically ....

Greetings
Marvin Blase (tA-logistic Software GmbH)
You'll never notice the good things if you haven't seen the bad.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform