>i am trying to use indexseek like below :
>
>xpcode='0323'
>sele a
>use pcode1
>abc=iif(indexseek(xpcode,.f.,'pcode1','pcode'),pcode1.case,0)
>
>result the value of first record
>
>abc=iif(indexseek(xpcode,.t.,'pcode1','pcode'),pcode1.case,0)
>
>result correct value but record pointer moved
>
>warm regards,
>mk.
Perhaps you should use your custom function, which would save the record pointer, do seek, calculate value, then restore the record pointer? Or would it be possible to prepare your data in advance?
If it's not broken, fix it until it is.
My Blog