Jump to content

Get Funktionname


Recommended Posts

Hi,

is it possible to get the functionname within a function ?

Exists a macro for the functionname ?

eg:

TEST()

FUNC TEST()
MSGBOX(0,"FUNKTIONNAME", "The Called Funktionname is:" &  @??????? )
ENDFUNC

greetings

Wolke

Far as I know, no

But wouldn't that be redundant, being your writing the code, just add the function name in the msgbox etc...

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

  • Moderators

I know there is a DLL call for this, I've seen it, but I can't remember what it was. However I was thinking along the same lines as Gary:

TEST()

Func TEST()
    Local $CurentFunc = 'TEST'
    MSGBOX(0,"FUNKTIONNAME", "The Called Funktionname is:" &  $CurentFunc )
EndFunc

Edit:

Code Tags :)

Edit2:

Looks like most others are using GetCurrentMethod.

Edited by SmOke_N

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

i have put function names in a combo box

the used

$My_Func = guictrlread($Combo_Box)

call($My_Func)

8)

okay Val, I give what's that got to do with the price of bread?

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...