Enum FixedAssignmentSemanticFlags
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 = 64The 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 = 16The destination of a UserDefinedTypeCopy is a user-defined type that has a variable-length
Stringmember, at any depth.DestinationHoldsVariant = 256The destination of a UserDefinedTypeCopy is a user-defined type that has a
Variantmember, at the top level of the type.See SourceHoldsVariant.
Failed = 1This operation produces a run-time error.
None = 0No flags set.
SourceHoldsObject = 32The 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
LSetbetween 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 = 8The source of a UserDefinedTypeCopy is a user-defined type that has a variable-length
Stringmember, at any depth.MS-VBAL §5.4.3.6 allows
LSetbetween any two user-defined types, and RD-VBA runs it, carrying the member's value across where the other record has a variable-lengthStringat the same offset. MS-VBA refuses the statement at compile time, with "Type mismatch", when either record has a variable-lengthStringmember (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 = 128The source of a UserDefinedTypeCopy is a user-defined type that has a
Variantmember, at the top level of the type.MS-VBAL §5.4.3.6 allows
LSetbetween any two user-defined types, and RD-VBA runs it, carrying the member's value across where the other record has aVariantat the same offset. MS-VBA refuses the statement at compile time, with "Type mismatch", when either record has aVariantmember 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 ofVariant, is not looked at.StringTarget = 2The target is a
String: the value is fitted into the width the target already has.UserDefinedTypeCopy = 4The target and the source are user-defined types:
LSetcopies 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.