Class VBFixedStringType
A VBStringType representing the String*length (fixed-length String) data type.
public sealed record VBFixedStringType : VBStringType, IEquatable<VBType>, IEquatable<VBIntrinsicType>, IEquatable<VBIntrinsicType<string?>>, IEquatable<VBStringType>, IEquatable<VBFixedStringType>
- Inheritance
-
VBFixedStringType
- Implements
- Inherited Members
- Extension Methods
Remarks
👉 Fixed-length strings are padded (with spaces) or truncated as needed to meet the specified declared length.
Constructors
VBFixedStringType(int)
A VBStringType representing the String*length (fixed-length String) data type.
public VBFixedStringType(int Length)
Parameters
LengthintThe length of the string value.
Remarks
👉 Fixed-length strings are padded (with spaces) or truncated as needed to meet the specified declared length.
Properties
DefaultValue
A string of Length null characters (U+0000): the initial value of a fixed-length string variable (MS-VBAL 2.3).
public override VBTypedValue DefaultValue { get; }
Property Value
Length
The length of the string value.
public int Length { get; init; }
Property Value
MaxLength
MS-VBAL 2.2 Entities and Data Types restricts the maximum length of a fixed-length string to 65,526 characters.
public static int MaxLength { get; }