>>Fabio,
>>
>>There's nothing to document. UDF in a query cannot make any assumption about what the current work area is or what current record pointer is. It's your problem if you use UDF this way not VFP.
>
>Sergey,
>While I agree that Fabio may have been too quick with calling this a bug, your argument is not valid here. The record number and workarea are not used in the expression (MOD(A,1000)#0 OR THERMO(A)).
Peter,
I was refering to Fabio's post that includes following code
PROCEDURE THERMO(vValue)
? "recno()=",RECNO(),"A=",vValue
As you can see it does reference current work area and RECNO()
--sb--