Table of Contents

Class StringOperandFact

Namespace
RDCore.SDK.Semantics.Facts
Assembly
RDCore.SDK.dll

The String operand of a relational operation that compares a String, or a Variant holding one, with a number (MS-VBAL 5.6.9.5): its value Let-coerced (MS-VBAL 5.5.1.2) to a Double, and to the effective type that the table of MS-VBAL 5.6.9.5 gives the two operands.

public sealed record StringOperandFact : IEquatable<StringOperandFact>
Inheritance
StringOperandFact
Implements
Inherited Members

Remarks

Each Let-coercion has a value or raises a run-time error. When the String is not known, neither is stated: the value and the error are both null.

Constructors

StringOperandFact(bool, string, VBTypedValue?, int?, VBTypedValue?, int?, VBTypedValue?)

The String operand of a relational operation that compares a String, or a Variant holding one, with a number (MS-VBAL 5.6.9.5): its value Let-coerced (MS-VBAL 5.5.1.2) to a Double, and to the effective type that the table of MS-VBAL 5.6.9.5 gives the two operands.

public StringOperandFact(bool IsLeft, string SpecifiedEffectiveType, VBTypedValue? AsDouble, int? AsDoubleError, VBTypedValue? AsSpecified, int? AsSpecifiedError, VBTypedValue? Number)

Parameters

IsLeft bool

Whether the String is the left operand of the operation.

SpecifiedEffectiveType string

The name of the effective type that the table of MS-VBAL 5.6.9.5 gives the two operands.

AsDouble VBTypedValue

The String Let-coerced to a Double; null when the String is not known, or the Let-coercion raises an error.

AsDoubleError int?

The number of the run-time error that the Let-coercion to a Double raises; null when it raises none.

AsSpecified VBTypedValue

The String Let-coerced to SpecifiedEffectiveType; null when the String is not known, or the Let-coercion raises an error.

AsSpecifiedError int?

The number of the run-time error that the Let-coercion to SpecifiedEffectiveType raises; null when it raises none.

Number VBTypedValue

The value of the other operand, the number, as it is held; null when it is not known.

Remarks

Each Let-coercion has a value or raises a run-time error. When the String is not known, neither is stated: the value and the error are both null.

Properties

AsDouble

The String Let-coerced to a Double; null when the String is not known, or the Let-coercion raises an error.

public VBTypedValue? AsDouble { get; init; }

Property Value

VBTypedValue

AsDoubleError

The number of the run-time error that the Let-coercion to a Double raises; null when it raises none.

public int? AsDoubleError { get; init; }

Property Value

int?

AsSpecified

The String Let-coerced to SpecifiedEffectiveType; null when the String is not known, or the Let-coercion raises an error.

public VBTypedValue? AsSpecified { get; init; }

Property Value

VBTypedValue

AsSpecifiedError

The number of the run-time error that the Let-coercion to SpecifiedEffectiveType raises; null when it raises none.

public int? AsSpecifiedError { get; init; }

Property Value

int?

IsLeft

Whether the String is the left operand of the operation.

public bool IsLeft { get; init; }

Property Value

bool

Number

The value of the other operand, the number, as it is held; null when it is not known.

public VBTypedValue? Number { get; init; }

Property Value

VBTypedValue

SpecifiedEffectiveType

The name of the effective type that the table of MS-VBAL 5.6.9.5 gives the two operands.

public string SpecifiedEffectiveType { get; init; }

Property Value

string