Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting calling method name?
Message
From
26/02/2013 15:16:37
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01566974
Message ID:
01566983
Views:
68
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
Previous
Reply
Map
View

Click here to load this message in the networking platform