Class TDSSEnum

Unit

Declaration

type TDSSEnum = class(TObject)

Description

Hierarchy

Overview

Fields

Public Sequential: Boolean;
Public MinOrdinal: Integer;
Public MaxOrdinal: Integer;
Public MinChars: Integer;
Public MaxChars: Integer;
Public Names: Array of String;
Public LowerNames: Array of String;
Public Ordinals: Array of Integer;
Public Name: String;
Public DefaultValue: Integer;
Public UseFirstFound: Boolean;
Public AllowLonger: Boolean;
Public Hybrid: Boolean;

Methods

Public constructor Create(EnumName: String; IsSequential: Boolean; MinCh, MaxCh: Integer; EnumNames: Array of String; EnumOrds: Array of Integer);
Public destructor Destroy; override;
Public function OrdinalToString(Value: Integer): String;
Public function StringToOrdinal(Value: String): Integer;
Public function IsOrdinalValid(Value: Integer): Boolean;

Description

Fields

Public Sequential: Boolean;
 
Public MinOrdinal: Integer;

are the main ordinals (without aliases) sequential/contiguous?

Public MaxOrdinal: Integer;
 
Public MinChars: Integer;
 
Public MaxChars: Integer;
 
Public Names: Array of String;

minimum and maximum number of chars that are required to disambiguate strings

Public LowerNames: Array of String;

minimum and maximum number of chars that are required to disambiguate strings

Public Ordinals: Array of Integer;
 
Public Name: String;
 
Public DefaultValue: Integer;

public

Public UseFirstFound: Boolean;
 
Public AllowLonger: Boolean;
 
Public Hybrid: Boolean;
 

Methods

Public constructor Create(EnumName: String; IsSequential: Boolean; MinCh, MaxCh: Integer; EnumNames: Array of String; EnumOrds: Array of Integer);
 
Public destructor Destroy; override;
 
Public function OrdinalToString(Value: Integer): String;
 
Public function StringToOrdinal(Value: String): Integer;
 
Public function IsOrdinalValid(Value: Integer): Boolean;
 

Generated by PasDoc 0.16.0.