Table of Contents

Enum FixedAssignmentSemanticFlags

Namespace
RDCore.SDK.Semantics.Flags
Assembly
RDCore.SDK.dll

The semantic flags that can be attached to an LSet or RSet statement (MS-VBAL §5.4.3.6-7) operation.

[Flags]
public enum FixedAssignmentSemanticFlags

Fields

DestinationHoldsObject = 64

The destination of a UserDefinedTypeCopy is a user-defined type that has a member of an object type (Object, a class or an interface), at the top level of the type.

See SourceHoldsObject.

DestinationHoldsVariableLengthString = 16

The destination of a UserDefinedTypeCopy is a user-defined type that has a variable-length String member, at any depth.

See SourceHoldsVariableLengthString.

DestinationHoldsVariant = 256

The destination of a UserDefinedTypeCopy is a user-defined type that has a Variant member, at the top level of the type.

See SourceHoldsVariant.

Failed = 1

This operation produces a run-time error.

None = 0

No flags set.

SourceHoldsObject = 32

The source of a UserDefinedTypeCopy is a user-defined type that has a member of an object type (Object, a class or an interface), at the top level of the type.

MS-VBAL §5.4.3.6 allows LSet between any two user-defined types, and RD-VBA runs it, copying the object, or its address, where the other record has a member at the same offset. MS-VBA refuses the statement at compile time, with "Type mismatch", when either record has a member of an object type at its top level (observed in Excel): a program that relies on it does not compile in MS-VBA. A member of a nested record, or an array of objects, is not looked at.

SourceHoldsVariableLengthString = 8

The source of a UserDefinedTypeCopy is a user-defined type that has a variable-length String member, at any depth.

MS-VBAL §5.4.3.6 allows LSet between any two user-defined types, and RD-VBA runs it, carrying the member's value across where the other record has a variable-length String at the same offset. MS-VBA refuses the statement at compile time, with "Type mismatch", when either record has a variable-length String member (observed in Excel, for a member at the top level of the record): a program that relies on it does not compile in MS-VBA.

SourceHoldsVariant = 128

The source of a UserDefinedTypeCopy is a user-defined type that has a Variant member, at the top level of the type.

MS-VBAL §5.4.3.6 allows LSet between any two user-defined types, and RD-VBA runs it, carrying the member's value across where the other record has a Variant at the same offset. MS-VBA refuses the statement at compile time, with "Type mismatch", when either record has a Variant member at its top level (observed in Excel): a program that relies on it does not compile in MS-VBA. A member of a nested record, or an array of Variant, is not looked at.

StringTarget = 2

The target is a String: the value is fitted into the width the target already has.

UserDefinedTypeCopy = 4

The target and the source are user-defined types: LSet copies one over the other as bytes.

Remarks

🧩 The statement itself says nothing about a program that is wrong in a way it can still run: the facts are flagged here, at analysis time, and it is for an analyzer (RDCore.Diagnostics, or any other) to decide whether one is worth a diagnostic.