|
-
Dec 21st, 2021, 08:50 AM
#11
Re: TwinBasic
 Originally Posted by baka
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|