Information générale
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Network:
Windows 2000 Server
>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?
Use the Access or Assign methods. Then in the Access or Assign method use RaiseEvent command to raise an event. Now use bindevent to bind to the event that is raised.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement