cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to return the name of the current sub routine or function?

ananddave123
Occasional Contributor

RE: Is there a way to return the name of the current sub routine or function?

How can we do it in VB Script ??

steveburton4
Occasional Contributor

RE: Is there a way to return the name of the current sub routine or function?

Bit late but would like to add my vote for this too.
TanyaYatskovska
Community Manager

RE: Is there a way to return the name of the current sub routine or function?


@Steven, your vote was counted.


 


@Anand, I guess that you will have to create a script extension and execute the JScript code there. You can call this script extension from any of your VBScript projects.


 

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Abhijeet_Bhagat
New Contributor

RE: Is there a way to return the name of the current sub routine or function?

Hi,



when i add the above code to script extension then i get following error


'arguments.callee.caller' is null or not an object


 


Microsoft JScript runtime error


 


code.js 



obviously script extension does not work for getting th running routine name.



~Abhijeet

Thanks, --Abhijeet Bhagat
Morgan
Frequent Contributor

RE: Is there a way to return the name of the current sub routine or function?

I'd like to add my vote to this as well.  
TanyaYatskovska
Community Manager

RE: Is there a way to return the name of the current sub routine or function?


Hi Morgan,


 


Done. Thanks for your participation.

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
snagarale
Not applicable

RE: Is there a way to return the name of the current sub routine or function?

This is going to be useful in my project also. Please count my vote.
Abhijeet_Bhagat
New Contributor

RE: Is there a way to return the name of the current sub routine or function?

please count my vote as well for this feature being available via vbs
Thanks, --Abhijeet Bhagat
TanyaYatskovska
Community Manager

RE: Is there a way to return the name of the current sub routine or function?


Hi Guys,


 


I've added your votes, as well. Thanks.

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
jlucktay
Occasional Visitor

RE: Is there a way to return the name of the current sub routine or function?

Hi, I'd like for this functionality to be added to VBScript too. Please add a vote from me.
New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors