https://bugs.documentfoundation.org/show_bug.cgi?id=145753
--- Comment #4 from Rafael Lima <[email protected]> --- (In reply to Mike Kaganski from comment #3) > That would mean a bug. Option Compatible indeed enables enums; e.g., with > and without Option Compatible, (without VBASupport) you get different > results compiling the module with enums - it would be a syntax error without > Option Compatible. VBASupport should only change runtime, so inability to > use compile-time structs is a bug. The following code compiles both with "Option Compatible" and "Option VBASupport 1"; however it only runs with "Option VBASupport 1". Enum eWindowManager WINDOWS = 1 ' Windows OS2PM = 2 ' OS/2 Presentation Manager MACINTOSH = 3 ' Macintosh MOTIF = 4 ' Motif Window Manager / Unix-like OPENLOOK = 5 ' Open Look / Unix-like End Enum Sub EnumTest MsgBox eWindowManager.WINDOWS End Sub @Mike, maybe Enum is supposed to be available only with VBASupport. See the following test, which uses VBASupport (not Option Compatible) https://opengrok.libreoffice.org/xref/core/basic/qa/vba_tests/enum.vb?r=66b135fa -- You are receiving this mail because: You are the assignee for the bug.
