Table of Contents

Enum VBOperatingSystem

Namespace
RDCore.SDK.Runtime.Abstract.Execution
Assembly
RDCore.SDK.dll

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 = 2

Linux: Linux is 1, and Linux64 too in a 64-bit environment.

Both are RD-VBA additions: MS-VBA does not run on Linux, and has neither.

MacOS = 1

macOS: Mac is 1.

Other = 3

Any other operating system: every operating-system constant is 0.

Windows = 0

Windows: Win32 is 1, and Win64 too 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.