logo
vbRad Home
Source Code
Book Reviews
Forum
Links
About Us
Contribute

Compare Databases with SQL Effects Clarity
 
 How to find out whether you are in IDE or compiled code

Posted on
2/18/2001
Author:
Robert Gelb
Email:
Not Shown
Applies To OS:
All
Product:
5, 6



Below is a quicky function that lets you determine at runtime whether the code is compiled or you are running in the IDE.


Private Function IsTheCodeCompiled() As Boolean
    On Error Resume Next

    Debug.Print 1 / 0
    IsTheCodeCompiled = IIf(Err, False, True)

End Function

Add Your Comment  

Name: Email Address: all fields optional
Notify me via email when someone responds to this message (valid email required).

Enter the word: