General information
Category:
Coding, syntax & commands
Hi Carlos,
The code I gave is of course just a minimal prototype to get things going :)
>the solution is to wrap each and every API function in a VFP UDF function, but the name of the VFP UDF should be the same as the alias of the API function. We are taking advantage of the fact that declared API functions take precedence over VFP UDF functions, so the first time you call the function, the VFP UDF is executed, then the UDF declares the API function and in the last line "calls itself", but this time the API function has been declared, so the API function takes precedence and is executed. From there on, everytime we call the function, the API function wlll be executed, until somewhere else a CLEAR ALL, CLEAR DLLS or similar is run, then the VFP UDF kicks in again and redeclares the API function.
Thank you for the smart trick
François
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only