Method name

Hi,
I’m pondering the idea of putting this code at the beginning of each method

circuit=circuit+chr(13)+methodname

then I check this variable and see if there is any repetitions because when the program gets big there are many nested methods and there’s the risk
of repeating the same method twice.

How do I get the current methodname ?
Thanks

CurrentMethodName

Exactly as you wrote CurrentMethodName

And if you wanted to do something faster use an array:

Declare:
dim arsMethods() as string

Then do:
arsMethods.append CurrentMethodName

Appending strings is light years faster using an array than doing string concatenation.