Are you sure you are executing the program in VFP9? This error can raise when you use _reportoutput variable in older VFP versions, so you should look at VERSION() result as the first step.
If this happens in VFP 9 then you have to post some code sample.