Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Array question
Message
From
09/03/2004 05:40:56
 
 
To
08/03/2004 15:27:59
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00884232
Message ID:
00884364
Views:
7
This message has been marked as a message which has helped to the initial question of the thread.
This is correct because VFP have only stream arrays with a dimensional coefficient
In array space you can use any positive pair.
dimension aTest[4] && this is [4,0] and coefficient is 0
aTest[1]="Arrays"
aTest[2]="are not"
aTest[3]="so good"
aTest[4]="anymore"

? aTest[4,2]    && this is [(4-1)*0+2=2]
? aTest[1,3]    && this is [(1-1)*0+3=3]

DIMENSION aTest[4, 2] && coefficient is 2
aTest[1] = "R1, C1"
aTest[2] = "R1, C2" 
aTest[3] = "R2, C1"
aTest[4] = "R2, C2"
aTest[5] = "R3, C1"
aTest[6] = "R3, C2"
aTest[7] = "R4, C1"
aTest[8] = "R4, C2"

? aTest[1, 4]  && [(1-1)*2+4 = 4 ]
? aTest[2, 5]  && [(2-1)*2+5 = 7 ]
? aTest[1, 8]  && [(1-1)*2+8 = 8 ]
Fabio
Previous
Reply
Map
View

Click here to load this message in the networking platform