Search Tools Links Login

bDebugmode


Visual Basic 6, or VB Classic

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

About this post

Posted: 2002-06-01
By: ArchiveBot
Viewed: 117 times

Categories

Visual Basic 6

Attachments

No attachments for this post


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.