Check whether application is running from VB IDE or outside VB
Posted: 2003-06-01
By: ArchiveBot
Viewed: 101
Filed Under:
No attachments for this post
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.....
Original Author: V2
Code
Sub Main()
If App.LogMode = 0 Then
MsgBox "Inside IDE"
Else
MsgBox "Outside IDE"
End If
End Sub
Comments on this post
No comments have been added for this post.
You must be logged in to make a comment.