Hi
I've got paradox tables containing three colums with x y and z coordinates.
I want to select records in a certain area
X +/- dx
Y +/- dy
Z +/- dz
for this I've made a secondairy index with the index fields x,y,z
XYZtable.AddIndex('secXYZ','X;Y;Z',[ixCaseInsensitive]);
the index is there, I've checked
but if I want to use it
IndexName:='secxyz'; SetRange([x-dx,y-dy,z-dz],[x+dx,y+dy,z+dz]);
the index only seems to work on the x-coordinate and not all three of them.
Any thought of what I may do wrong?
I don't know if it matters but the primary index is also on the X,Y and Z and X,Y and Z each has it's own secondary index
I've got paradox tables containing three colums with x y and z coordinates.
I want to select records in a certain area
X +/- dx
Y +/- dy
Z +/- dz
for this I've made a secondairy index with the index fields x,y,z
XYZtable.AddIndex('secXYZ','X;Y;Z',[ixCaseInsensitive]);
the index is there, I've checked
but if I want to use it
IndexName:='secxyz'; SetRange([x-dx,y-dy,z-dz],[x+dx,y+dy,z+dz]);
the index only seems to work on the x-coordinate and not all three of them.
Any thought of what I may do wrong?
I don't know if it matters but the primary index is also on the X,Y and Z and X,Y and Z each has it's own secondary index