>Hi,
> How about compare 2 or more dimension array?
>
>Thank you
Then code would slightly change :
lparameters taArray, toObject
for ix = 1 to alen(taArray,1)
for jx = 1 to alen(taArray,2)
if taArray[ix,jx] ...
return ix*jx
Though this is not mandatory to do it this way, since FP processes 2 dim. arrays as if it was 1 dimensional easily. I just wanted to be warned when you hit situations it catches you. ie:
select field1, field2 from .. into array myArray
appe from myArray
dimension myarray[3]
myArray = "test"
appe from myArray
Although this doesn't refer to your case it's a sample showing 2 dimensional arrays are sometimes needed for a correct behaviour. At the moment a good example doesn't come to mind. Just whenever you see a "invalid subscript.." keep this in mind as a cause.
Cetin