Advertisement
ASP_Volume2 Debugging and Error Handling #28165

Check whether application is running from VB IDE or outside VB

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.....

AI

AI Summary: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Source Code
original-source
Sub Main()
 If App.LogMode = 0 Then
 MsgBox "Inside IDE"
 Else
 MsgBox "Outside IDE"
 End If
End Sub
Original Comments (3)
Recovered from Wayback Machine