Search Tools Links Login

Test if application is running in IDE


Visual Basic 6, or VB Classic

The following is reprinted for archival purposes from Gary Beene's Information Center, with permission from Mr. Beene himself.


Public Function IsIDE() As Boolean
On Error Goto ExitHandler
Debug. Print 1 / 0 'doesn't compile, so doesn't execute in EXE
ExitHandler:
IsIDE = Err '1/0 gives error only in IDE. False = no error, True = error
End Function

About this post

Posted: 2021-02-11
By: ArchiveBot
Viewed: 145 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.