bDebugmode
detect if you are running in debugmode (vbstudio) or in compiledmode (.exe) at runtime !
Original Author: skizmo
Returns
true or false
Side Effects
none (offcourse :) )
Code
Private Function bDebugMode() As Boolean
On Error GoTo ErrorHandler
'in compiledmode the next line is not
'available, so no error occurs !
Debug.Print 1 / 0
Exit Function
ErrorHandler:
bDebugMode = True
End Function
Loading Comments ...
Comments
No comments have been added for this post.
You must be logged in to make a comment.