Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP *bug*
Message
From
28/10/2004 19:41:09
 
 
To
28/10/2004 18:37:06
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00955565
Message ID:
00955623
Views:
16
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform