Information générale
Catégorie:
Codage, syntaxe et commandes
>>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.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement