Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy to array: only 1?
Message
From
25/09/1997 21:00:12
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00051523
Message ID:
00051706
Views:
44
>>>Correct. Do it without the dimension statement then look at the array. COPY TO ARRAY for 1 field always is dimensioned as aArray[n,1]
>>
>>Still, this is an one dimensional array.
>>
>>Vlad
>
>I believe the dimensions refer to the number of coordinates that define the array element, therefore a one dimensional array will have only one dimension (neither row nor column, just one dimension). The moment you refer to an element by its row, you implicitly assume that the array is two dimensional (there can be no rows without columns). Take a cartesian system of axis x, y for example. Any point on the x axis will have y = 0, where y is its second dimension although its value is 0.
>I agree that, if we speak in Foxpro terms, a two dimensional array with just one column may be treated as one dimensional because its element's absolute reference will have the same value as its relative reference to row, column, in which the issue becomes pure philosophical.

Agreed.

Vlad
Previous
Reply
Map
View

Click here to load this message in the networking platform