Table of Contents

Class VBFixedStringType

Namespace
RDCore.SDK.Model.Types
Assembly
RDCore.SDK.dll

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

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

Length int

The 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

Gets the default value for this data type.

public override VBTypedValue DefaultValue { get; }

Property Value

VBTypedValue

Remarks

⚠️ Derived types must back the implementation of this property with a thread-safe private static readonly Lazy<T>. Failure to do so would lock up the static context initialization of the StaticSymbol symbols.

Length

The length of the string value.

public int Length { get; init; }

Property Value

int

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; }

Property Value

int