You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
DoEvents treated as label when placed before :
To Reproduce
Use DoEvents in combination with another statement, e.g.
Dim i AsLong
DoEvents: i = 1
Expected behavior
Treated as sub.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
OS: Windows 10
twinBASIC compiler version 0.15.472
Additional context
I'm not sure if this is only applying to syntax highlighting or compiling; it's very difficult to detect if DoEvents fired properly.
The text was updated successfully, but these errors were encountered:
Yes, this appears to be a hard coded exception in VB6, since this would ordinarily be treated as a line label. e.g. the same does not occur for other builtin no-param functions like Beep and Command, which are treated as line labels.
You can workaround with Call Beep: i = 2 and Call Command: i = 3 but you cannot use Call DoEvents which is a syntax error. Apparently DoEvents is some kind of intrinsic.
Describe the bug
DoEvents treated as label when placed before :
To Reproduce
Use
DoEvents
in combination with another statement, e.g.Expected behavior
Treated as sub.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
I'm not sure if this is only applying to syntax highlighting or compiling; it's very difficult to detect if DoEvents fired properly.
The text was updated successfully, but these errors were encountered: