Class StringOperandFact
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
IsLeftboolWhether the
Stringis the left operand of the operation.SpecifiedEffectiveTypestringThe name of the effective type that the table of MS-VBAL 5.6.9.5 gives the two operands.
AsDoubleVBTypedValueThe
StringLet-coerced to aDouble; null when theStringis not known, or the Let-coercion raises an error.AsDoubleErrorint?The number of the run-time error that the Let-coercion to a
Doubleraises; null when it raises none.AsSpecifiedVBTypedValueThe
StringLet-coerced toSpecifiedEffectiveType; null when theStringis not known, or the Let-coercion raises an error.AsSpecifiedErrorint?The number of the run-time error that the Let-coercion to
SpecifiedEffectiveTyperaises; null when it raises none.NumberVBTypedValueThe 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
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
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
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
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; }