Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP *bug*
Message
De
28/10/2004 19:41:09
 
 
À
28/10/2004 18:37:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
00955565
Message ID:
00955623
Vues:
17
>>Well, yeah I know, but it still seems that this could and should trigger an error . . .
>>
>>>I think you answered your own question. Arrays in VFP are actually one dimensional...it does some tricks to make them seem two dimensions.
>>>
>
>I'd sure call it a bug, or at the very least a documentation deficiency.
>But only the latter if VFP in fact uses only the second argument to calculate the position IN A MIS-ADDRESSED array.
>At the least I would have expected xxx(2,1) to display the second element.
>
>cheers

I would have also. It gets "weirder??????" in that fox only recognizes the column subscript if you reference a one dimesional arry with two subscripts.
DIME abc[4]
STORE 1 TO abc[1],2 to ABC[2], etc.
? abc[99,1] ----> 1
? abc[99,2] ----> 2
? abc[1,5] -----> Subscript out of range error
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform