Hi,
you may have a look @
www.vfp2c.com.
I've written a extended version of the FoxPro SqlExec function called SqlExecEx
with which you can retrieve the PRINT statement during the call.
There's an usage example in the supplied example project in the file "odbc.prg".
Regards
Christian