Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Project Hook?
Message
From
23/06/2011 05:31:00
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01515659
Message ID:
01515663
Views:
45
>>>>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform