Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
InIDE in non forms based apps.
Message
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00452447
Message ID:
00452507
Views:
21
>I use the following code to determine if I am 'in' the IDE. This works fabu if there is a form in the app. In other apps I need a way to make the same determination. I don't want to look for the running VB.EXE as I may compile and run the compiled file from another app in the IDE...
>
>Anyone have any good ideas?

I don't know it is a good idea (like you asked for) but, I use this:
Private Sub Command1_Click()
Dim intI As Integer
On Error Resume Next
Debug.Assert intI / 0
If Err.Number = 0 Then
    MsgBox "Compiled version"
Else
    MsgBox "In IDE version"
End If
End Sub
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform