Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can I get info about SUB inside SUB?
#12
So,

Your template might look like this for any function start:
Code: (Select All)
Function f1
    If debug Then Print "Entering f1"
    GoTo endF
    endF:
    If debug Then Print "Exiting f1"
End Function

plug in with copy/paste and modify names, for example:
Code: (Select All)
Dim Shared As Long debug
Print "Hello from main code section."
debug = 0 ' test with 0 and 1 or -1
f = f1
f = f2
GoTo endF
endF:
Print "The end"
End

Function f1
    If debug Then Print "Entering f1"
    GoTo endF
    endF:
    If debug Then Print "Exiting f1"
End Function
Function f2
    If debug Then Print "Entering f2"
    GoTo endF
    endF:
    If debug Then Print "Exiting f2"
End Function

or use one of the other DIYD suggestions.
  724  855  599  923  575  468  400  206  147  564  878  823  652  556 bxor cross forever
Reply


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

Possibly Related Threads…
Thread Author Replies Views Last Post
  More info about Random Access files PhilOfPerth 28 962 02-25-2026, 01:50 PM
Last Post: ahenry3068
  Exiting sub while inside a loop PhilOfPerth 5 525 12-05-2025, 09:40 AM
Last Post: PhilOfPerth
  Making the content list of files inside a Zip ? euklides 13 2,406 02-08-2024, 03:52 PM
Last Post: euklides
  0.71 Info on compilation error krovit 7 1,760 06-11-2022, 04:28 PM
Last Post: DSMan195276

Forum Jump:


Users browsing this thread: 1 Guest(s)