Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Moving through a sepia color set, from dark to light ?
Message
De
31/05/2010 10:11:58
 
 
À
31/05/2010 08:13:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01466438
Message ID:
01466636
Vues:
41
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform