Information générale
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Network:
Windows 2003 Server
Warning: OFF-TOPIC
>Hi everybody,
>I have a method which I call from another method. I am wondering whether is
> a way to get that calling method's name in the current method?
Warning: OFF-TOPIC
Visual FreePro opens this information up at runtime. It supports this with a new caller object. Using caller.name will reference the calling function's name (as was known at compile time). And its parent can be accessed via caller.caller.name, etc. A new object called _program is also introduced, which grants you access all running threads as well as the entire hierarchy of running functions. And a new object called _thread grants access to terminate, suspend, resume and generally coordinate all other running threads. A function called _thread.snapshot lets you save an xml-like file of everything running currently on the system.
Warning: OFF-TOPIC
Précédent
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