>Before VFP can proceed with query it has to determine the size of fields in the result set. To do that it runs query against the first record in the table. This record may not even satisfy query conditions or may be deleted. See
PRB: SQL SELECT Statement UDF Executes Twice On First Record mskb #
Q133001.
So, this applies to UDF use only in SQL. Ok, that'd make sense I have it in an isolated place as I don't use that approach that much. However, it worked ok in VFP 7. So, I'd assume there's a different way of doing things now in regards to that specific point in VFP 8.