Enum VBOperatingSystem
The operating system an environment runs on: which of the built-in Win32, Win64, Mac, Linux and Linux64
conditional-compilation constants is 1.
public enum VBOperatingSystem
Fields
Linux = 2Linux:
Linuxis1, andLinux64too in a 64-bit environment.Both are RD-VBA additions: MS-VBA does not run on Linux, and has neither.
MacOS = 1macOS:
Macis1.Other = 3Any other operating system: every operating-system constant is
0.Windows = 0Windows:
Win32is1, andWin64too in a 64-bit environment.The default: what MS-VBA runs on, and what a profile that does not say is.
Remarks
Each of those constants is 1 only on its own operating system, and defined 0 on every other, so that #If Linux Then says
the same thing wherever it is compiled. A project #Const or a command-line define still overrides any of them.