Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VB to VFP 7
Message
De
12/06/2003 13:13:47
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00799419
Message ID:
00799446
Vues:
21
This message has been marked as the solution to the initial question of the thread.
>I was hoping someone could show me how to change the following code to VFP. I'm using version 7 for now. I know I need to create sometype of class so that I can capture the events. Do I have to use vfpcom.dll in 7 or is there another way?
>

In VFP 7 and later, you don't need VFPCOM.DLL. Open the Object Browser and open the type library for your object. Expand the Interfaces node and find the appropriate interface. Open an empty code window and drag the interface you want from the Object Browser into the code window. When you drop it, the skeleton code for your event handler class will be generated. Fill in code in the events you want to handle.

In the code that actually uses this stuff, instantiate the appropriate object, instantiate your event handler and use the EventHandler() function to connect the two.

Tamar
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform