https://bugs.winehq.org/show_bug.cgi?id=53678
Bug ID: 53678 Summary: vbscript can not compile CaseClausules that do not use a colon Product: Wine Version: 7.16 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: vbscript Assignee: wine-bugs@winehq.org Reporter: jsm174@gmail.com Distribution: ---
While working on leveraging the vbscript engine of Wine for a macos port of Visual Pinball, I've been testing several user made scripts.
I've found a few scripts, where users did not use a colon after a case. This seems to work in vbscript:
Set g_objWSH = Wscript.CreateObject("Wscript.Shell")
dim x
x = 2
Select Case x Case 0: 'If Enabled Then Case 2 Wscript.Echo "This works 2" Case 3: Wscript.Echo "This works 3" Case 4 Wscript.Echo "This works 4" End Select