Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Moving through a sepia color set, from dark to light ?
Message
From
31/05/2010 10:11:58
 
 
To
31/05/2010 08:13:51
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01466438
Message ID:
01466636
Views:
40
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
Map
View

Click here to load this message in the networking platform