VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Check whether application is running from VB IDE or outside VB

by V2 (7 Submissions)
Category: Debugging and Error Handling
Compatability: VB Script
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (12 Votes)

I was looking for a one line code which can tell me if i am running my application from inside ide or from outside vb scope because i need to call some api calls which crash my vb ide if i run them from inside vb. i had seen many working code for this but i think this checking is best... please vote and comment for this code.....

Rate Check whether application is running from VB IDE or outside VB

Sub Main()
 If App.LogMode = 0 Then
 MsgBox "Inside IDE"
 Else
 MsgBox "Outside IDE"
 End If
End Sub

Download this snippet    Add to My Saved Code

Check whether application is running from VB IDE or outside VB Comments

No comments have been posted about Check whether application is running from VB IDE or outside VB. Why not be the first to post a comment about Check whether application is running from VB IDE or outside VB.

Post your comment

Subject:
Message:
0/1000 characters