Sign in to follow this  
Followers 0
wolkenloser

Get Funktionname

7 posts in this topic

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

Share this post


Link to post
Share on other sites



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.

 

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

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

[center]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.[/center]

Share this post


Link to post
Share on other sites

i have put function names in a combo box

the used

$My_Func = guictrlread($Combo_Box)

call($My_Func)

8)


NEWHeader1.png

Share this post


Link to post
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.

 

Share this post


Link to post
Share on other sites

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

just an idea...

a possible direction...

an alternative option...

because you guys believe the WAY he wants to achieve this... wont work

.... and its the price of tea.. no???

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

.... and its the price of tea.. no???

8)

Guess that depends on where your from.... yes???


SciTE for AutoItDirections for Submitting Standard UDFs

 

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

 

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  
Followers 0