Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can I get info about SUB inside SUB?
#3
If you can't figure out debug 

DIM Shared Debug as Long
DIM Shared SubName$ 
in all your subs set that name SubName$ = ... in  Sub (and maybe set to "main" or "" when exit sub?)

have a clause If Debug Then Print "Sub is ";SubName$

When Debug is set to -1 then it prints
If turn off, ie Debug = 0
then that clutter is removed.

Notice you can also comment out 'If Debug Then Print "Sub is ";SubName$
to pin down just the subs you are interested in.

Or Instead of print, try out MessageBox so dont mess up screen. Caveat - this does not work well in a fast loop!
b = b + ...
Reply


Messages In This Thread
RE: Can I get info about SUB inside SUB? - by bplus - 05-08-2023, 05:56 PM



Users browsing this thread: 26 Guest(s)