Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Project Hook?
Message
De
23/06/2011 05:31:00
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01515659
Message ID:
01515663
Vues:
46
>>>>Hi All,
>>>>
>>>>I have a project which has a table (DBF) inside it. Each time I re-compile this project I would like the table to be ZAP'd and re-populated with new data from an external, source table on my machine. Is the Project Hook the way to do this? If so, how does one set this up?
>>>
>>>Yes you could.
>>>Create a Project hook class and in its BeforeBuild event put:
>>>
>>>USE YourTable EXCLUSIVE
>>>ZAP
>>>**** Repopulate it here
>>>CLOSE DATA ALL
>>>
>>
>>
>>OK, how do I create the project hook class and where do I put it, attach it, or ... ?
>
>
>You could create it as normal visual class (VCX) based on ProjectHood.
>To attach it to your project:
>Project Menu->Project Info
>In the window:
>Check Project class checkbox and select your class.

Thanks, I created a class called "update_tables" based on the projecthook class. I edited the BeforeBuild method as above but it does not appear to fire (I tried outputting messages to the screen to see its zapping/appending progress but nothing shows?).
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform