>pnRec should start at -1, because VFP will call nextrec once (before the the >SELECT) to determine the type and
>length of the rec column.
Thanks, Paul.
I had posted a message to someone a few days ago using a UDF in a SQL statement that returned cumulative values and I didn't know why I had to preset my counter variable to the negative inverse of the first record being queried.
Now I know.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao