Class TSetOption

Unit

Declaration

type TSetOption = class(TValueOption)

Description

useful for making a choice of things

Values must not have a + or - sign as the last character as that can be used to add/remove items from the default set, specifying items without +/- at the end clears the default and uses only specified items

Hierarchy

Overview

Fields

Protected FPossibleValues: TStringList;
Protected FValues: TStringList;

Methods

Protected function GetPossibleValues: string;
Protected procedure SetPossibleValues(const Value: string);
Protected function CheckValue(const AString: String): Boolean; override;
Protected function GetValues: string;
Protected procedure SetValues(const Value: string);
Public constructor CreateEx(const AShort: Char; const ALong: String; const AShortCaseSensitive, ALongCaseSensitive: Boolean); override;
Public destructor Destroy; override;
Public function HasValue(const AValue: string): boolean;

Properties

Public property PossibleValues: string read GetPossibleValues write SetPossibleValues;
Public property Values: string read GetValues write SetValues;

Description

Fields

Protected FPossibleValues: TStringList;
 
Protected FValues: TStringList;
 

Methods

Protected function GetPossibleValues: string;
 
Protected procedure SetPossibleValues(const Value: string);
 
Protected function CheckValue(const AString: String): Boolean; override;
 
Protected function GetValues: string;
 
Protected procedure SetValues(const Value: string);
 
Public constructor CreateEx(const AShort: Char; const ALong: String; const AShortCaseSensitive, ALongCaseSensitive: Boolean); override;
 
Public destructor Destroy; override;
 
Public function HasValue(const AValue: string): boolean;
 

Properties

Public property PossibleValues: string read GetPossibleValues write SetPossibleValues;
 
Public property Values: string read GetValues write SetValues;
 

Generated by PasDoc 0.15.0.