Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding a event to an object
Message
De
07/05/2008 16:45:25
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2000 Server
Divers
Thread ID:
01315742
Message ID:
01315744
Vues:
27
>Hi! There
>
>is there any way to add an event, or a listener, or a hook to an already created object?
>
>to be more specific, let's say you have this custom class
>
>
>define class myClass as custom
>     nTest = 0
>enddefine
>
>
>i don't have access to the source code of the class and i need a program fires when the ntest changes or is accessed.
>
>I know there is this access and assign stuff, but once again, don't have access to code.
>
>so, is there any way to add this to the object alredy created?

I think you can create a subclass, and define the Access and Assign methods there.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform