Interface IRuntimeEnvironmentProfile
An immutable description of the host environment an execution session runs in — the facts VBA semantics depend on that are neither in the source nor derivable from it.
public interface IRuntimeEnvironmentProfile
Remarks
Supplied by the environment host (from appsettings.json, overridable by the host). Design-
time and tests use Default.
Properties
AnsiCodePage
The ANSI code page for Byte() ↔ String conversions and the non-Unicode behaviour
of Chr / Asc.
int AnsiCodePage { get; }
Property Value
Culture
The CultureInfo for Lcid — drives Option Compare Text,
Like, Format$, and number / date let-coercion to and from String.
CultureInfo Culture { get; }
Property Value
Is64Bit
true for a 64-bit environment. Determines LongPtr width and the value of the
#If Win64 / #If VBA7 pre-compiler directives.
bool Is64Bit { get; }
Property Value
Lcid
The environment locale identifier (LCID). 0 means the invariant locale.
int Lcid { get; }
Property Value
SupportsOptionCompareDatabase
true when the host supports the Option Compare Database directive (Microsoft Access).
bool SupportsOptionCompareDatabase { get; }