Quote Originally Posted by baka View Post
edit: did some research

thx.

so, its similar to VB6, I need to check if its in IDE or compiled.

this method is not working: CBool(App.LogMode = 0)
looking here: https://www.vbforums.com/showthread....ing-in-the-IDE

I found that this is working:

Code:
Function RunningInVB() As Boolean
'Returns whether we are running in vb(true), or compiled (false)
 
    Static counter As Variant
    If IsEmpty(counter) Then
        counter = 1
        Debug.Assert RunningInVB() Or True
        counter = counter - 1
    ElseIf counter = 1 Then
        counter = 0
    End If
    RunningInVB = counter
 
End Function
would be nice to have a "twinbasic" alternative, like IDEmode that returns True or False
Yes, that's a good idea. I've just added App.IsInIDE boolean property in v0.13.53. The update should be available to you via the extensions bar on the left side of VS Code within about 10 minutes.