Question : override standard SQLEXEC function vfp

Hi, I've a problem with the standard SQLEXEC function of VFP:
I have some procedure that call the standard SQLEXEC function but i want that this procedure call another personal function named "SQLEXEC" that execute some code before call the standard SQLEXEC function....can I do that?

Answer : override standard SQLEXEC function vfp

It is possible to name your own procedure SQLEXEC but to call it is a little bit problematic. You have to make changes to the compiled module otherwise the built-in function takes precedence...

So, the easiest way is to create your own procedure with different name, e.g. MySQLEXEC, change all SQLEXEC calls to MySQLEXEC calls and then you may do whatever you need in MySQLEXEC.
Random Solutions  
 
programming4us programming4us