Jump to content
Sign in to follow this  
ryanhui

Get Function Name

Recommended Posts

ryanhui

Hi, guys

Is there any possibility to get the function name within this function?

for example

Func ABC ()

MsgBox(ThisFunctionName) ;anyway, should print out ABC

EndFunc

Thanks a lot!

Share this post


Link to post
Share on other sites
tannerli

Maybe its not the fastest way, but it would work.... I think

Just keep a Local variable updatet let's say $FUNC

and at the beginning you always set the var to the name: $FUNC = ABC

Share this post


Link to post
Share on other sites
ryanhui

Maybe its not the fastest way, but it would work.... I think

Just keep a Local variable updatet let's say $FUNC

and at the beginning you always set the var to the name: $FUNC = ABC

suppose we have hundreds of functions need to rewrite, it's time consuming i think

Share this post


Link to post
Share on other sites
tannerli

ah sry, I thought you meant just UDF's....

Share this post


Link to post
Share on other sites
Jos

I have seen this question before but don't really understand its purpose.

In which situation would this be useful ?


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×