Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15537

What's Included in Runtime using Conditional Compile Alternatives

$
0
0
I'm pretty sure the following code included in a procedure is
excluded from the runtime file including the string "Begin DoLayer1".

Code:

  #If kDEBUGON Then
      Debug.Print "Begin DoLayer1"
  #End If

The question is What(??) is included in the runtime if handled as a procedure call like:

Code:

Call MyDebug("Begin DoLayer1")
Procedure in Common Module
Code:


Private Sub MyDebug(strIn as String)

  #If kDEBUGON Then
      Debug.Print strIn
  #End If

End Sub

I'm guessing the call and the string are included in the runtime -- which would increase the runtime significantly -- but would like to confirm.

Viewing all articles
Browse latest Browse all 15537

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>